diff options
author | Sami Kerola | 2014-07-13 19:16:35 +0200 |
---|---|---|
committer | Sami Kerola | 2014-07-13 19:35:39 +0200 |
commit | 99cacc6adf201c17866d032842b4390d6b7eb33a (patch) | |
tree | 70556c4eb33d6f69ee017e2583de99a5422a3821 /libfdisk/src/dos.c | |
parent | whereis: avoid printing uninitialized string (diff) | |
download | kernel-qcow2-util-linux-99cacc6adf201c17866d032842b4390d6b7eb33a.tar.gz kernel-qcow2-util-linux-99cacc6adf201c17866d032842b4390d6b7eb33a.tar.xz kernel-qcow2-util-linux-99cacc6adf201c17866d032842b4390d6b7eb33a.zip |
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 <kerolasa@iki.fi>
Diffstat (limited to 'libfdisk/src/dos.c')
-rw-r--r-- | libfdisk/src/dos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c index 5453eb3d7..aff9755e5 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; |