You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
selftests/tls: Add {} to avoid static checker warning
[ Upstream commitf50688b47c] 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:7f657d5bf5("selftests: tls: add selftests for TLS sockets") Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> Stable-dep-of: c326ca98446e ("selftests: tls: swap the TX and RX sockets in some tests") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
388c9d3eef
commit
78ef69b6e7
@@ -387,8 +387,9 @@ TEST_F(tls, sendmsg_large)
|
||||
EXPECT_EQ(sendmsg(self->cfd, &msg, 0), send_len);
|
||||
}
|
||||
|
||||
while (recvs++ < sends)
|
||||
while (recvs++ < sends) {
|
||||
EXPECT_NE(recv(self->fd, mem, send_len, 0), -1);
|
||||
}
|
||||
|
||||
free(mem);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user