Re: [PATCH] net/tls: remove redundant second null check on sgout

2018-04-24 Thread David Miller
From: Colin King Date: Tue, 24 Apr 2018 13:36:58 +0100 > From: Colin Ian King > > 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

[PATCH] net/tls: remove redundant second null check on sgout

2018-04-24 Thread Colin King
From: Colin Ian King 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 --- net/tl