]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
lldp: minor coding style improvement
authorLennart Poettering <lennart@poettering.net>
Thu, 2 Jun 2016 15:52:32 +0000 (17:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 6 Jun 2016 17:59:08 +0000 (19:59 +0200)
src/libsystemd-network/sd-lldp.c

index cbf62734a8f6978c776228a939fd34b6c3f64c8b..0bd1e66aa077da7087ce28b5ba0bc3897ed157ca 100644 (file)
@@ -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;
 }