]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: do not do the same thing twice in single if statement
authorSami Kerola <kerolasa@iki.fi>
Sun, 13 Jul 2014 17:16:35 +0000 (18:16 +0100)
committerSami Kerola <kerolasa@iki.fi>
Sun, 13 Jul 2014 17:35:39 +0000 (18:35 +0100)
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 <kerolasa@iki.fi>
libfdisk/src/dos.c

index 5453eb3d763ba0f2225ac03423919cd58ce00957..aff9755e588ea1ab2706baf7a075e5aa7eacb6a1 100644 (file)
@@ -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;