summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartlomiej Sieka <tur@semihalf.com>2008-03-19 10:00:06 +0100
committerBartlomiej Sieka <tur@semihalf.com>2008-03-19 10:00:06 +0100
commit5e339fd9ed539a7d7fec59cfc88f0857ab26a53f (patch)
tree30014c9af8f06354545ad23f5cfc59d81fad7696
parent766529fccc860ecb9e955b4239dff69cd9e4ea09 (diff)
downloadu-boot-imx-5e339fd9ed539a7d7fec59cfc88f0857ab26a53f.zip
u-boot-imx-5e339fd9ed539a7d7fec59cfc88f0857ab26a53f.tar.gz
u-boot-imx-5e339fd9ed539a7d7fec59cfc88f0857ab26a53f.tar.bz2
[new uImage] Fix style issue spotted by Wolfgang Denk <wd@denx.org>
Signed-off-by: Bartlomiej Sieka <tur@semihalf.com>
-rw-r--r--board/trab/auto_update.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/board/trab/auto_update.c b/board/trab/auto_update.c
index 5311e12..46110cc 100644
--- a/board/trab/auto_update.c
+++ b/board/trab/auto_update.c
@@ -218,14 +218,12 @@ au_check_cksum_valid(int idx, long nbytes)
}
#endif
- if (nbytes != image_get_image_size (hdr))
- {
+ if (nbytes != image_get_image_size (hdr)) {
printf ("Image %s bad total SIZE\n", aufile[idx]);
return -1;
}
/* check the data CRC */
- if (!image_check_dcrc (hdr))
- {
+ if (!image_check_dcrc (hdr)) {
printf ("Image %s bad data checksum\n", aufile[idx]);
return -1;
}
@@ -255,13 +253,11 @@ au_check_header_valid(int idx, long nbytes)
printf("size %#x %#lx ", image_get_data_size (hdr), nbytes);
printf("type %#x %#x ", image_get_type (hdr), IH_TYPE_KERNEL);
#endif
- if (nbytes < image_get_header_size ())
- {
+ if (nbytes < image_get_header_size ()) {
printf ("Image %s bad header SIZE\n", aufile[idx]);
return -1;
}
- if (!image_check_magic (hdr) || !image_check_arch (hdr, IH_ARCH_ARM))
- {
+ if (!image_check_magic (hdr) || !image_check_arch (hdr, IH_ARCH_ARM)) {
printf ("Image %s bad MAGIC or ARCH\n", aufile[idx]);
return -1;
}
@@ -271,7 +267,8 @@ au_check_header_valid(int idx, long nbytes)
return -1;
}
/* check the type - could do this all in one gigantic if() */
- if ((idx == IDX_FIRMWARE) && !image_check_type (hdr, IH_TYPE_FIRMWARE)) {
+ if ((idx == IDX_FIRMWARE) &&
+ !image_check_type (hdr, IH_TYPE_FIRMWARE)) {
printf ("Image %s wrong type\n", aufile[idx]);
return -1;
}
@@ -289,8 +286,7 @@ au_check_header_valid(int idx, long nbytes)
return -1;
}
if ((idx == IDX_PREPARE || idx == IDX_PREINST || idx == IDX_POSTINST)
- && !image_check_type (hdr, IH_TYPE_SCRIPT))
- {
+ && !image_check_type (hdr, IH_TYPE_SCRIPT)) {
printf ("Image %s wrong type\n", aufile[idx]);
return -1;
}