tree-wide: various fixlets suggested by Coccinelle

This commit is contained in:
Frantisek Sumsal
2026-03-05 10:27:58 +01:00
parent a8335fb91f
commit 90f5d2a202
24 changed files with 29 additions and 48 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ static int test_basic(bool bind_to_interface) {
r = sd_dhcp_server_start(server);
/* skip test if running in an environment with no full networking support, CONFIG_PACKET not
* compiled in kernel, nor af_packet module available. */
if (r == -EPERM || r == -EAFNOSUPPORT)
if (IN_SET(r, -EPERM, -EAFNOSUPPORT))
return r;
ASSERT_OK(r);