diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2021-10-28 04:28:13 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-11-01 10:05:22 +0100 |
commit | 5081ebbc5d1a9d67f0ed37d73610161d371c62f7 (patch) | |
tree | 2286fa2caf51ad1d76da656dda8c1d9382b43e6c | |
parent | d136ec5ac6882ba85842c542de472a39b646a101 (diff) | |
download | barebox-5081ebbc5d1a9d67f0ed37d73610161d371c62f7.tar.gz barebox-5081ebbc5d1a9d67f0ed37d73610161d371c62f7.tar.xz |
imd: fix imd_is_crc32()
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Link: https://lore.barebox.org/20211028012816.929611-2-antonynpavlov@gmail.com
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | include/image-metadata.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/image-metadata.h b/include/image-metadata.h index a9cb9cfe8f..439a0cba81 100644 --- a/include/image-metadata.h +++ b/include/image-metadata.h @@ -67,7 +67,7 @@ struct imd_entry_crc32 { static inline int imd_is_crc32(uint32_t type) { - return (type & IMD_TYPE_CRC32) ? 1 : 0; + return type == IMD_TYPE_CRC32; } static inline int imd_crc32_is_valid(uint32_t flags) |