summaryrefslogtreecommitdiff
path: root/common/spl/spl_fat.c
diff options
context:
space:
mode:
authorSean Anderson <seanga2@gmail.com>2023-11-08 11:48:37 -0500
committerTom Rini <trini@konsulko.com>2023-11-16 13:49:13 -0500
commitfeaeb8fa6f949dd76d455a91793a859382678a72 (patch)
treecfbc217f0390a3bf8e9fdf0bdbf1552407ea0d7d /common/spl/spl_fat.c
parent517e70856f0fcbb9c84de0414430086bea0008ee (diff)
downloadu-boot-feaeb8fa6f949dd76d455a91793a859382678a72.tar.gz
u-boot-feaeb8fa6f949dd76d455a91793a859382678a72.tar.bz2
u-boot-feaeb8fa6f949dd76d455a91793a859382678a72.zip
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 <seanga2@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/spl/spl_fat.c')
-rw-r--r--common/spl/spl_fat.c1
1 files changed, 0 insertions, 1 deletions
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 {