]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/io/lzopio.c (test_header): Simplify code and remove useless
authorVladimir Serbinenko <phcoder@gmail.com>
Wed, 6 Nov 2013 23:51:28 +0000 (00:51 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Wed, 6 Nov 2013 23:51:28 +0000 (00:51 +0100)
"checksum = checksum;".

ChangeLog
grub-core/io/lzopio.c

index cca6bc6b1c7502dad880fff4b5fd6cc67e352096..c1b25688d06c3618946430edae3e19d8e38d96b3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
+       "checksum = checksum;".
+
 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
index 451d237afa7849ed5d3340bf22afe881ece20622..0e7e2e56b97524655023e7ced878fb173904484c 100644 (file)
@@ -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);