]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: drop one workaround initialization
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 9 Jun 2021 10:40:35 +0000 (12:40 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 9 Jun 2021 20:00:28 +0000 (22:00 +0200)
As for the other ones in src/network/, if they are removed, gcc warns when they
are removed.

Should fix Coverity CID#1457466.

src/network/networkd-setlink.c

index 4f2500033850ed2675d8adfdb51c54db5cdd5706..478591b5bb5d41cebaaa0a90cb5bf62514df5d8a 100644 (file)
@@ -692,7 +692,7 @@ int link_request_to_set_master(Link *link) {
 }
 
 int link_request_to_set_mtu(Link *link, uint32_t mtu) {
-        Request *req = NULL;  /* avoid false maybe-uninitialized warning */
+        Request *req;
         const char *origin;
         uint32_t min_mtu;
         int r;