diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2014-08-28 13:53:36 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2014-08-29 13:11:34 +0200 |
commit | 19375e4fcabea7ffcf2b249f6738218b3885c871 (patch) | |
tree | a81a5d404c21686c71e29ac0547ce261dc29a124 | |
parent | db77041d93a946384cadecdb3a33466e09f77b00 (diff) | |
download | lvm2-19375e4fcabea7ffcf2b249f6738218b3885c871.tar.gz |
cleanup: assignment into ()
Put is_float=1 into () - so the intention is obvious.
Remove uneeded extra check for for *s != 0,
since it's already checked for either digit or '.'.
-rw-r--r-- | libdm/libdm-report.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index cd42b11d1..6e7167fb7 100644 --- a/libdm/libdm-report.c +++ b/libdm/libdm-report.c @@ -1721,7 +1721,7 @@ static const char *_tok_value_number(const char *s, int is_float = 0; *begin = s; - while (*s && ((!is_float && *s=='.' && (is_float=1)) || isdigit(*s))) + while ((!is_float && (*s == '.') && ((is_float = 1))) || isdigit(*s)) s++; *end = s; |