[PATCH 12/14] libfdisk: do not do the same thing twice in single if statement

Sami Kerola
2014-07-13T20:25:38Z

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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libfdisk/src/dos.c b/libfdisk/src/dos.c
index 5453eb3..aff9755 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.0.1