selftests: net: tls: remove unused variable and code
authorAnders Roxell <anders.roxell@linaro.org>
Fri, 5 Nov 2021 16:45:11 +0000 (17:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Nov 2021 19:35:08 +0000 (19:35 +0000)
commit62b12ab5dff038ea43b69207b1f42ddc2f0a0b09
tree7f29668f34a3182f7de910c77203a776aa953341
parente1464db5c57ef393dde8126f09d2b04d166acf16
selftests: net: tls: remove unused variable and code

When building selftests/net with clang, the compiler warn about the
function abs() see below:

tls.c:657:15: warning: variable 'len_compared' set but not used [-Wunused-but-set-variable]
        unsigned int len_compared = 0;
                     ^

Rework to remove the unused variable and the for-loop where the variable
'len_compared' was assinged.

Fixes: 7f657d5bf507 ("selftests: tls: add selftests for TLS sockets")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/tls.c