lslogins: remove redundant condition
[util-linux-2.32.1/login-utils/lslogins.c:601]: (style) Redundant condition: If '!EXPR', the comparison 'EXPR != '$'' is always true. Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
8deb816173
commit
4d43029b72
|
@ -601,7 +601,7 @@ static const char *get_pwd_method(const char *str, const char **next, unsigned i
|
||||||
}
|
}
|
||||||
p++;
|
p++;
|
||||||
|
|
||||||
if (!*p || *p != '$')
|
if (*p != '$')
|
||||||
return NULL;
|
return NULL;
|
||||||
if (next)
|
if (next)
|
||||||
*next = ++p;
|
*next = ++p;
|
||||||
|
|
Loading…
Reference in New Issue