]> git.baikalelectronics.ru Git - kernel.git/commit
net/tls: remove redundant second null check on sgout
authorColin Ian King <colin.king@canonical.com>
Tue, 24 Apr 2018 12:36:58 +0000 (13:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 24 Apr 2018 20:02:10 +0000 (16:02 -0400)
commitb63c72aefb92d162c849730d819942f8a53aaf28
tree1b20d4226029e9f65c710dd50fa641f6f323c89d
parentdbe73d491f4ea9a6f2854a9123f09517260a0e13
net/tls: remove redundant second null check on sgout

A duplicated null check on sgout is redundant as it is known to be
already true because of the identical earlier check. Remove it.
Detected by cppcheck:

net/tls/tls_sw.c:696: (warning) Identical inner 'if' condition is always
true.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tls/tls_sw.c