]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit435d138c2765882e78f93c1e505146ec4da32739
tree7f29668f34a3182f7de910c77203a776aa953341
parentb49b2ca956a809b06674ae6f078d6641b596c093
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: 8ddcbbae3cc1 ("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