diff --git a/ChangeLog b/ChangeLog index cca6bc6b1..c1b25688d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-11-07 Vladimir Serbinenko + + * grub-core/io/lzopio.c (test_header): Simplify code and remove useless + "checksum = checksum;". + 2013-11-07 Vladimir Serbinenko * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of diff --git a/grub-core/io/lzopio.c b/grub-core/io/lzopio.c index 451d237af..0e7e2e56b 100644 --- a/grub-core/io/lzopio.c +++ b/grub-core/io/lzopio.c @@ -380,12 +380,8 @@ test_header (grub_file_t file) sizeof (checksum)) goto CORRUPTED; - if (hcheck) - { - checksum = checksum; - if (grub_memcmp (&checksum, hcheck->read(context), sizeof(checksum)) != 0) - goto CORRUPTED; - } + if (hcheck && grub_memcmp (&checksum, hcheck->read(context), sizeof(checksum)) != 0) + goto CORRUPTED; lzopio->start_block_off = grub_file_tell (lzopio->file);