[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20240928090312.1079952-2-dario.binacchi@amarulasolutions.com>
Date: Sat, 28 Sep 2024 11:03:12 +0200
From: Dario Binacchi <dario.binacchi@...rulasolutions.com>
To: netdev@...r.kernel.org
Cc: Stephen Hemminger <stephen@...workplumber.org>,
linux-amarula@...rulasolutions.com,
Dario Binacchi <dario.binacchi@...rulasolutions.com>
Subject: [iproute2, PATCH v2 2/2] arpd: drop useless initializers
It is useless to initialize the fields of a structure to their default
values. This patch keeps the initialization only for those fields that
are not set to their default values.
Signed-off-by: Dario Binacchi <dario.binacchi@...rulasolutions.com>
---
Changes v1 -> v2:
- rework the changes based on the changes of v2 of PATCH 1/2.
misc/arpd.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/misc/arpd.c b/misc/arpd.c
index 91f0006a60aa..a42603f60e70 100644
--- a/misc/arpd.c
+++ b/misc/arpd.c
@@ -441,9 +441,6 @@ static void get_kern_msg(void)
.msg_namelen = sizeof(nladdr),
.msg_iov = &iov,
.msg_iovlen = 1,
- .msg_control = NULL,
- .msg_controllen = 0,
- .msg_flags = 0
};
iov.iov_base = buf;
--
2.43.0
Powered by blists - more mailing lists