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

From: David Miller
Date: Tue Apr 24 2018 - 16:02:35 EST


From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Tue, 24 Apr 2018 13:36:58 +0100

> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxx>

Applied to net-next, thank you.