image: Remove dead code in image_align()
This commit is contained in:
1 parent
15dbd14d7a
commit
19e2b22193
1 file changed
+1
-4
+1
-4
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user