summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2016-12-07 00:39:36 +0100
committerPali Rohár <pali.rohar@gmail.com>2016-12-07 00:39:36 +0100
commit19e2b22193776e8edc3b45679e3fcc7b0bf8bb5f (patch)
tree780825a8344de8211db3681339d84c31f280559c
parent15dbd14d7acf494e63a87e4c8ae0991dd8281b77 (diff)
download0xFFFF-19e2b22193776e8edc3b45679e3fcc7b0bf8bb5f.tar.bz2
image: Remove dead code in image_align()
-rw-r--r--src/image.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/image.c b/src/image.c
index f31d6c7..9cb3e41 100644
--- a/src/image.c
+++ b/src/image.c
@@ -214,16 +214,13 @@ static int image_append(struct image * image, const char * type, const char * de
static void image_align(struct image * image) {
- size_t align = 0;
+ size_t align;
if ( image->type == IMAGE_MMC )
align = 8;
else
align = 7;
- if ( align == 0 )
- return;
-
if ( ( image->size & ( ( 1ULL << align ) - 1 ) ) == 0 )
return;