diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-08 23:03:38 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-09 08:20:20 +0200 |
commit | ece174c5439021e32ebcc858842de9586072c006 (patch) | |
tree | b469235d6c4b195a6b53c7c5d97c0e516bfb4bc6 /src/libsystemd-network | |
parent | 76ef789d264f9eb7d7624b994aa6eead1dacfac4 (diff) |
tree-wide: drop {} from one-line if blocks
Patch via coccinelle.
Diffstat (limited to 'src/libsystemd-network')
-rw-r--r-- | src/libsystemd-network/sd-ipv4ll.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsystemd-network/sd-ipv4ll.c b/src/libsystemd-network/sd-ipv4ll.c index 0fc05e1484..14b9444dab 100644 --- a/src/libsystemd-network/sd-ipv4ll.c +++ b/src/libsystemd-network/sd-ipv4ll.c @@ -463,9 +463,8 @@ int sd_ipv4ll_get_address(sd_ipv4ll *ll, struct in_addr *address){ assert_return(ll, -EINVAL); assert_return(address, -EINVAL); - if (ll->claimed_address == 0) { + if (ll->claimed_address == 0) return -ENOENT; - } address->s_addr = ll->claimed_address; return 0; |