From: Sami Kerola Date: Sun, 13 Jul 2014 17:16:35 +0000 (+0100) Subject: libfdisk: do not do the same thing twice in single if statement X-Git-Tag: v2.25~75^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99cacc6adf201c17866d032842b4390d6b7eb33a;p=thirdparty%2Futil-linux.git 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 --- 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;