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)
commit95ad7544ad3f6cf585e5b8587e7d520fa3a43ad5
tree1b20d4226029e9f65c710dd50fa641f6f323c89d
parent080aaddae5b378ebb0f06d297bf05cf4ec5b47ac
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