dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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