[Crash-utility] [PATCH RFC 12/14] sadump: block_size is always non-negative

Oleksandr Natalenko oleksandr at redhat.com
Fri Oct 27 08:23:18 UTC 2017


Signed-off-by: Oleksandr Natalenko <oleksandr at redhat.com>
---
 sadump.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/sadump.c b/sadump.c
index 2ccfa82..6b912d4 100644
--- a/sadump.c
+++ b/sadump.c
@@ -157,9 +157,6 @@ read_dump_header(char *file)
 	}
 
 restart:
-	if (block_size < 0)
-		return FALSE;
-
 	if (!read_device(sph, block_size, &offset)) {
 		error(INFO, "sadump: cannot read partition header\n");
 		goto err;
-- 
2.14.3




More information about the Crash-utility mailing list