nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0398-io-lzopio-Resolve-unnecessary-self-assignment-errors.patch

80913e
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
80913e
From: Darren Kenny <darren.kenny@oracle.com>
80913e
Date: Wed, 21 Oct 2020 14:44:10 +0000
80913e
Subject: [PATCH] io/lzopio: Resolve unnecessary self-assignment errors
80913e
80913e
These 2 assignments are unnecessary since they are just assigning
80913e
to themselves.
80913e
80913e
Fixes: CID 73643
80913e
80913e
Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
80913e
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
80913e
---
80913e
 grub-core/io/lzopio.c | 4 ----
80913e
 1 file changed, 4 deletions(-)
80913e
80913e
diff --git a/grub-core/io/lzopio.c b/grub-core/io/lzopio.c
80913e
index 84edf6dd2dc..6bf14daf474 100644
80913e
--- a/grub-core/io/lzopio.c
80913e
+++ b/grub-core/io/lzopio.c
80913e
@@ -125,8 +125,6 @@ read_block_header (struct grub_lzopio *lzopio)
80913e
 			  sizeof (lzopio->block.ucheck)) !=
80913e
 	  sizeof (lzopio->block.ucheck))
80913e
 	return -1;
80913e
-
80913e
-      lzopio->block.ucheck = lzopio->block.ucheck;
80913e
     }
80913e
 
80913e
   /* Read checksum of compressed data.  */
80913e
@@ -143,8 +141,6 @@ read_block_header (struct grub_lzopio *lzopio)
80913e
 			      sizeof (lzopio->block.ccheck)) !=
80913e
 	      sizeof (lzopio->block.ccheck))
80913e
 	    return -1;
80913e
-
80913e
-	  lzopio->block.ccheck = lzopio->block.ccheck;
80913e
 	}
80913e
     }
80913e