From feaeb8fa6f949dd76d455a91793a859382678a72 Mon Sep 17 00:00:00 2001 From: Sean Anderson Date: Wed, 8 Nov 2023 11:48:37 -0500 Subject: spl: Remove NULL assignments in spl_load_info Remove NULL assignments to fields in spl_load_info when .load doesn't reference these fields. This can result in more efficient code. filename must stay even if it is unused, since load_simple_fit uses it. Signed-off-by: Sean Anderson Reviewed-by: Simon Glass --- common/spl/spl_fat.c | 1 - 1 file changed, 1 deletion(-) (limited to 'common/spl/spl_fat.c') diff --git a/common/spl/spl_fat.c b/common/spl/spl_fat.c index 014074f85b..6172e7bcd4 100644 --- a/common/spl/spl_fat.c +++ b/common/spl/spl_fat.c @@ -99,7 +99,6 @@ int spl_load_image_fat(struct spl_image_info *spl_image, load.read = spl_fit_read; load.bl_len = 1; load.filename = (void *)filename; - load.priv = NULL; return spl_load_simple_fit(spl_image, &load, 0, header); } else { -- cgit v1.2.3