diff options
author | Karel Zak | 2018-07-18 09:46:40 +0200 |
---|---|---|
committer | Karel Zak | 2018-07-18 09:48:19 +0200 |
commit | 8deb816173187ce0666c1daa37ec35e4b7026b98 (patch) | |
tree | 586509c267317230c8dbd5548539a5dc6ac7adb8 | |
parent | mkfs.cramfs: remove redundant condition (diff) | |
download | kernel-qcow2-util-linux-8deb816173187ce0666c1daa37ec35e4b7026b98.tar.gz kernel-qcow2-util-linux-8deb816173187ce0666c1daa37ec35e4b7026b98.tar.xz kernel-qcow2-util-linux-8deb816173187ce0666c1daa37ec35e4b7026b98.zip |
lib/strutils: remove redundant condition
[util-linux-2.32.1/lib/strutils.c:122]: (style) Redundant condition: If 'EXPR == '0'', the comparison 'EXPR' is always true.
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | lib/strutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strutils.c b/lib/strutils.c index c3c422216..38fc8d6b5 100644 --- a/lib/strutils.c +++ b/lib/strutils.c @@ -119,7 +119,7 @@ check_suffix: if (frac == 0 && *p && dp && strncmp(dp, p, dpsz) == 0) { char *fstr = p + dpsz; - for (p = fstr; *p && *p == '0'; p++) + for (p = fstr; *p == '0'; p++) frac_zeros++; errno = 0, p = NULL; frac = strtoumax(fstr, &p, 0); |