summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2021-10-28 04:28:13 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2021-11-01 10:05:22 +0100
commit5081ebbc5d1a9d67f0ed37d73610161d371c62f7 (patch)
tree2286fa2caf51ad1d76da656dda8c1d9382b43e6c /include
parentd136ec5ac6882ba85842c542de472a39b646a101 (diff)
downloadbarebox-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>
Diffstat (limited to 'include')
-rw-r--r--include/image-metadata.h2
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)