image: Remove dead code in image_align()

This commit is contained in:
Pali Rohár committed 2016-12-07 00:39:36 +01:00
1 parent 15dbd14d7a
commit 19e2b22193
1 file changed
+1 -4
+1 -4
View File
@@ -214,16 +214,13 @@ static int image_append(struct image * image, const char * type, const char * de
static void image_align(struct image * image) { static void image_align(struct image * image) {
size_t align = 0; size_t align;
if ( image->type == IMAGE_MMC ) if ( image->type == IMAGE_MMC )
align = 8; align = 8;
else else
align = 7; align = 7;
if ( align == 0 )
return;
if ( ( image->size & ( ( 1ULL << align ) - 1 ) ) == 0 ) if ( ( image->size & ( ( 1ULL << align ) - 1 ) ) == 0 )
return; return;