selftests/tls: Add {} to avoid static checker warning
authorKees Cook <keescook@chromium.org>
Thu, 27 May 2021 03:27:19 +0000 (20:27 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 8 Jun 2021 00:39:29 +0000 (18:39 -0600)
commitf50688b47c5858d2ff315d020332bf4cb6710837
treef47efacceb4bf543de08c0f3b6a9d2ab57dd85b3
parent1421ec684a43379b2aa3cfda20b03d38282dc990
selftests/tls: Add {} to avoid static checker warning

This silences a static checker warning due to the unusual macro
construction of EXPECT_*() by adding explicit {}s around the enclosing
while loop.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 7f657d5bf507 ("selftests: tls: add selftests for TLS sockets")
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/net/tls.c