From 99cacc6adf201c17866d032842b4390d6b7eb33a Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 13 Jul 2014 18:16:35 +0100 Subject: [PATCH] libfdisk: do not do the same thing twice in single if statement The second argument was very likely meant to be 'be->offset'. Maintainers review & sign-off will further verify this change being correct. Signed-off-by: Sami Kerola --- libfdisk/src/dos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c index 5453eb3d76..aff9755e58 100644 --- a/libfdisk/src/dos.c +++ b/libfdisk/src/dos.c @@ -1736,7 +1736,7 @@ static int cmp_ebr_offsets(const void *a, const void *b) struct pte *ae = (struct pte *) a, *be = (struct pte *) b; - if (ae->offset == 0 && ae->offset == 0) + if (ae->offset == 0 && be->offset == 0) return 0; if (ae->offset == 0) return 1; -- 2.47.2