diff options
author | Karel Zak | 2018-07-18 09:46:40 +0200 |
---|---|---|
committer | Karel Zak | 2018-07-18 09:54:05 +0200 |
commit | 4d43029b72325ff3e3215d9ce20a8acfaf8b5fa9 (patch) | |
tree | bd96a4ae69eaea7db21b66cbbb61e22b5dde8986 /login-utils | |
parent | lib/strutils: remove redundant condition (diff) | |
download | kernel-qcow2-util-linux-4d43029b72325ff3e3215d9ce20a8acfaf8b5fa9.tar.gz kernel-qcow2-util-linux-4d43029b72325ff3e3215d9ce20a8acfaf8b5fa9.tar.xz kernel-qcow2-util-linux-4d43029b72325ff3e3215d9ce20a8acfaf8b5fa9.zip |
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>
Diffstat (limited to 'login-utils')
-rw-r--r-- | login-utils/lslogins.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/lslogins.c b/login-utils/lslogins.c index a9655e22f..d77f74dff 100644 --- a/login-utils/lslogins.c +++ b/login-utils/lslogins.c @@ -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; |