diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-06-02 17:52:32 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-06-06 19:59:08 +0200 |
commit | a1fb61b0e826181b1bea514f8a7358081578133d (patch) | |
tree | 32aa9268b6498032189b89523c901383836a3e4e /src/libsystemd-network/sd-lldp.c | |
parent | 3db2ec568c01676a2f5482b8127ba0005c5fa2b2 (diff) |
lldp: minor coding style improvement
Diffstat (limited to 'src/libsystemd-network/sd-lldp.c')
-rw-r--r-- | src/libsystemd-network/sd-lldp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libsystemd-network/sd-lldp.c b/src/libsystemd-network/sd-lldp.c index cbf62734a8..0bd1e66aa0 100644 --- a/src/libsystemd-network/sd-lldp.c +++ b/src/libsystemd-network/sd-lldp.c @@ -530,11 +530,10 @@ _public_ int sd_lldp_set_filter_address(sd_lldp *lldp, const struct ether_addr * /* In order to deal nicely with bridges that send back our own packets, allow one address to be filtered, so * that our own can be filtered out here. */ - if (!addr) { + if (addr) + lldp->filter_address = *addr; + else zero(lldp->filter_address); - return 0; - } - lldp->filter_address = *addr; return 0; } |