summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/dhcp-identifier.c
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2020-10-09 15:06:34 +0200
committerFrantisek Sumsal <frantisek@sumsal.cz>2020-10-09 15:11:55 +0200
commitd46b79bbe0e821b921a8f3874c5ea4b50bde9252 (patch)
tree55a773a28d00b05ec82ccb9998c265c6996aa111 /src/libsystemd-network/dhcp-identifier.c
parentd7a0f1f4f9910a1a2d290e31b2ba8cfa7126fbdd (diff)
downloadsystemd-d46b79bbe0e821b921a8f3874c5ea4b50bde9252.tar.gz
tree-wide: drop if braces around single line expressions as well
Diffstat (limited to 'src/libsystemd-network/dhcp-identifier.c')
-rw-r--r--src/libsystemd-network/dhcp-identifier.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsystemd-network/dhcp-identifier.c b/src/libsystemd-network/dhcp-identifier.c
index d0610a32e2..e7dbec1511 100644
--- a/src/libsystemd-network/dhcp-identifier.c
+++ b/src/libsystemd-network/dhcp-identifier.c
@@ -26,11 +26,10 @@ int dhcp_validate_duid_len(uint16_t duid_type, size_t duid_len, bool strict) {
if (duid_len > MAX_DUID_LEN)
return -EINVAL;
- if (!strict) {
+ if (!strict)
/* Strict validation is not requested. We only ensure that the
* DUID is not too long. */
return 0;
- }
switch (duid_type) {
case DUID_TYPE_LLT: