splash: fix splash source flags check
PATCH 1/1 splash: fix splash source flags check
SPLASH_STORAGE_RAW is defined as 0, so a check against & will never be true. These flags are never combined so do a check against == instead.
Signed-off-by Tomas Melin <[email protected]>
--- common/splash_source.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
common/splash_source.c +2 -3
@@ -327,10 +327,9 @@ int splash_source_load(struct splash_location *locations, uint size)if (!splash_location)return -EINVAL ; -if (splash_location->flags &SPLASH_STORAGE_RAW ) +if (splash_location->flags ==SPLASH_STORAGE_RAW )return splash_load_raw (splash_location, bmp_load_addr); -else if (splash_location->flags &SPLASH_STORAGE_FS ) +else if (splash_location->flags ==SPLASH_STORAGE_FS )return splash_load_fs (splash_location, bmp_load_addr); -return -EINVAL ; }
Signature · 1 line
2.1.4
PATCH 1/1 splash: fix splash source flags check
Quoted 5 lines · Tomas Melin
SPLASH_STORAGE_RAWis defined as 0, so a check against & will never be true. These flags are never combined so do a check against == instead.Signed-off-by Tomas Melin <[email protected]>
Reviewed-by Tom Rini <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161117/a6aee544/attachment.sig>