spl: spl_legacy: Use IS_ENABLED() to remove #ifdef
Use IS_ENABLED() instead of #ifdef CONFIG_ to remove one #ifdef. No functional change intended. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Cc: Weijie Gao <weijie.gao@mediatek.com> Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
This commit is contained in:
parent
c11081729f
commit
5ae526b61f
@ -11,13 +11,12 @@ int spl_parse_legacy_header(struct spl_image_info *spl_image,
|
|||||||
{
|
{
|
||||||
u32 header_size = sizeof(struct image_header);
|
u32 header_size = sizeof(struct image_header);
|
||||||
|
|
||||||
#ifdef CONFIG_SPL_LEGACY_IMAGE_CRC_CHECK
|
|
||||||
/* check uImage header CRC */
|
/* check uImage header CRC */
|
||||||
if (!image_check_hcrc(header)) {
|
if (IS_ENABLED(CONFIG_SPL_LEGACY_IMAGE_CRC_CHECK) &&
|
||||||
|
!image_check_hcrc(header)) {
|
||||||
puts("SPL: Image header CRC check failed!\n");
|
puts("SPL: Image header CRC check failed!\n");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (spl_image->flags & SPL_COPY_PAYLOAD_ONLY) {
|
if (spl_image->flags & SPL_COPY_PAYLOAD_ONLY) {
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user