summaryrefslogtreecommitdiffstats
path: root/src/network/netdev/ipoib.c
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2021-12-17 20:16:18 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-12-18 00:36:07 +0100
commitc0a2e0cc24491a4f4dbf5ad49aec2507f75ee8e3 (patch)
tree007415b9e50cbaac98a2e4c94c9a752c074d3d81 /src/network/netdev/ipoib.c
parentnetwork: dhcp4: pass IPServiceType=none to dhcp client (diff)
downloadsystemd-c0a2e0cc24491a4f4dbf5ad49aec2507f75ee8e3.tar.xz
systemd-c0a2e0cc24491a4f4dbf5ad49aec2507f75ee8e3.zip
network: a couple of tweaks suggested by Coccinelle
Diffstat (limited to 'src/network/netdev/ipoib.c')
-rw-r--r--src/network/netdev/ipoib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/netdev/ipoib.c b/src/network/netdev/ipoib.c
index c3f583fc46..e0ff9e8c62 100644
--- a/src/network/netdev/ipoib.c
+++ b/src/network/netdev/ipoib.c
@@ -139,7 +139,7 @@ int config_parse_ipoib_pkey(
rvalue);
return 0;
}
- if (u == 0 || u == 0x8000) {
+ if (IN_SET(u, 0, 0x8000)) {
log_syntax(unit, LOG_WARNING, filename, line, 0,
"IPoIB pkey cannot be 0 nor 0x8000, ignoring assignment: %s",
rvalue);