From: Antony Pavlov <antonynpavlov@gmail.com> To: barebox@lists.infradead.org Subject: [PATCH 2/4] imd: reuse imd_is_crc32() Date: Thu, 28 Oct 2021 04:28:14 +0300 [thread overview] Message-ID: <20211028012816.929611-3-antonynpavlov@gmail.com> (raw) In-Reply-To: <20211028012816.929611-1-antonynpavlov@gmail.com> Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> --- common/imd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/imd.c b/common/imd.c index e1d5733c6b..0295d84d34 100644 --- a/common/imd.c +++ b/common/imd.c @@ -317,7 +317,7 @@ static int imd_calculate_crc32(void *input, const struct imd_header *imd_start, length = ALIGN(length, 4); length += sizeof(struct imd_header); - if (imd_read_type(imd) == IMD_TYPE_CRC32) { + if (imd_is_crc32(imd_read_type(imd))) { *imd_crc = (struct imd_header *)imd; debug("Found crc token at %d\n", end_ofs); break; -- 2.33.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2021-10-28 1:32 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-10-28 1:28 [PATCH 0/4] imd fixes Antony Pavlov 2021-10-28 1:28 ` [PATCH 1/4] imd: fix imd_is_crc32() Antony Pavlov 2021-10-28 1:28 ` Antony Pavlov [this message] 2021-10-28 1:28 ` [PATCH 3/4] include/image-metadata.h: fix whitespaces in the BAREBOX_IMD_CRC macro Antony Pavlov 2021-10-28 1:28 ` [PATCH 4/4] bareboximd: make the '-c' option work again Antony Pavlov 2021-10-28 6:45 ` Ahmad Fatoum 2021-10-28 7:00 ` Antony Pavlov 2021-11-01 9:05 ` [PATCH 0/4] imd fixes Sascha Hauer
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20211028012816.929611-3-antonynpavlov@gmail.com \ --to=antonynpavlov@gmail.com \ --cc=barebox@lists.infradead.org \ --subject='Re: [PATCH 2/4] imd: reuse imd_is_crc32()' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox