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:
Karel Zak 2018-07-18 09:46:40 +02:00
parent 8deb816173
commit 4d43029b72
1 changed files with 1 additions and 1 deletions

View File

@ -601,7 +601,7 @@ static const char *get_pwd_method(const char *str, const char **next, unsigned i
}
p++;
if (!*p || *p != '$')
if (*p != '$')
return NULL;
if (next)
*next = ++p;