From: Karel Zak Date: Fri, 18 Jun 2021 15:57:13 +0000 (+0200) Subject: dmesg: remove condition [lgtm scan] X-Git-Tag: v2.37.1~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=155b79d38e778d6fac1753b61834fa6e7843a904;p=thirdparty%2Futil-linux.git dmesg: remove condition [lgtm scan] Signed-off-by: Karel Zak --- diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c index b3b9ef786e..d301951bbf 100644 --- a/sys-utils/dmesg.c +++ b/sys-utils/dmesg.c @@ -1596,8 +1596,7 @@ int main(int argc, char *argv[]) close(ctl.kmsg); if (n < 0) err(EXIT_FAILURE, _("read kernel buffer failed")); - if (n >= 0 - && ctl.action == SYSLOG_ACTION_READ_CLEAR) + else if (ctl.action == SYSLOG_ACTION_READ_CLEAR) ; /* fallthrough */ else break;