Message ID | 20240922144613.2103760-2-dario.binacchi@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBCQ4XFG47UFRBRW3YC3QMGQE43RH6XI@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D927E40D6A for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 22 Sep 2024 16:46:30 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-5c421ae1c7asf2068783a12.2 for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 22 Sep 2024 07:46:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1727016390; cv=pass; d=google.com; s=arc-20240605; b=b2Qv/gW/6aw5qUkM4tfUyrj+/X6w+9sF/QTRIazgETaGznN/iWyXmKXLuiWhATX7X8 phPyqHdy5mGMGN1lOQh7vloUPg5LgS019wnH3Y5gBuYPwMOkPxfgTz8SY5SQgvK/joJT oauw0yf88POupw30yoXZ96BHMcWotfS5gdF0ONg70HyoqlMkdBTSwJJTCQm1tiMHtKb0 kIxgVPMwpa0ElgnqGACoD7Z2oxztEPOEhN53Wak391Tc9v1HRI6Z0dXzEqmHUTgef1Ky 2jSFYj+8ex5NEQGLL4hVEt4NjDhagJXBsBa2KnmL4ZGoK2jlY0E+6Q2bCDUJEvdUbA7f 5AQA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=xQXyFiQWrCkLI/+qsSpZh5Cabc80ni4PHIB2Ov5icsA=; fh=FXSeDal64I37QIDnjrv7sklW5TVB7/giuNMxma0pofQ=; b=Y/LhtzzYk4GJmxwjK8VfkKNRt/iNKg1mUWsTTHcjUm2en4H5MhSvv8N/A+qxhFGZ7V pAFxKaNXEhReFbC0o9Npu1wH97Pix6Gymxjxim1uBQKSoRJqP4zsZa6Wko+yVfCd8zW1 Sr71RKnywFELEWNB8cy0vDxeUbRuTpWnMhLywT8HRUIxvKvaihYyQkn+Q3Vmuc3zlfuH RG7XMrj+k86QVEVx1e/1tZpyjRYRz7hh+Wd0LM+uk9MAEyWN0iD4MomghRniU4JAjBMK ppkeVZ76a3F0k3fBcvaQxlYGBP85Xu8YLmZNCU7wEQ2ClgXVpwZV1OmDlUmvEX6B+kBa CkFg==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="FQOYdCS/"; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1727016390; x=1727621190; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=xQXyFiQWrCkLI/+qsSpZh5Cabc80ni4PHIB2Ov5icsA=; b=ntX9d+egV61ATrQJ2DKcWL8ElBSUI6/bdAhYa7c857USTW6XlfkyeiNXfIqIFWgp+a fPgQDQFhkhtrOv9DqmFHXRaMP2JWvQakwFqh+tQgekD0K81qLkh4FzJJy5ynlnfxqNWz g/oYAU2kgFWlJoSht4XFmuh//AyZyjLNFHucA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727016390; x=1727621190; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xQXyFiQWrCkLI/+qsSpZh5Cabc80ni4PHIB2Ov5icsA=; b=ACoC/2O2Fr/p1v0ZF+i/1kHt0h41juEWNUYcJkTB03a6P5N+GDOl1cP7iW8tF7cOUs amaH1f6tE1glWR/KXDH3RvnT7qyqbM4xc6V+0Exw9vu915LXef/npU5oBzq3nSHyvStP ez1w2WwHGDDhr2u2o5H/0/3UuZCkxWztj39+O8GV8Cmj/a6SCF5qulAmq8FSoHpBmgtL 7zsM0AtknsuO9ZpfLGmYyrqsTqaJEkuAenbHqyATe0GZ1whL7oDxR31ilWDxxEDGimY8 dwu5qmC8oNG53z1Cu+H3zc7AM1uQ6KMd3RkKL+tJoqhOYw0DTw4yQpzDeaRrzxmrpGNI qM/g== X-Forwarded-Encrypted: i=2; AJvYcCVGBwH9MY5211+W9kBFBUVQufie2voSJ2jfenjiKxZIHZ1WJ+Mvk5BfC2BVSMbjk9LzjXIPsNr9soOfvJuj@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxrsjTYtiba6pmaTVXEJdycf2LdyKz0ZmH0elqGsYLEMlkJSuVq HUIYPQ9UADBWivj2SJsYnkz4mIBBJnjumSYxzRI1eQnnjBPt2aNFlByiBu2ZH2+tQQ== X-Google-Smtp-Source: AGHT+IEbxj5LeupYAT4im0qhwlBgIq34v6/OQlqbcxBCl5gqwJNlTM6MUdPK9whi++nJ/nSvbUANPA== X-Received: by 2002:a05:6402:5216:b0:5c3:d908:98f0 with SMTP id 4fb4d7f45d1cf-5c464daab65mr7067698a12.3.1727016390405; Sun, 22 Sep 2024 07:46:30 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:210e:b0:5c5:b616:e00 with SMTP id 4fb4d7f45d1cf-5c5b6160e5fls817546a12.2.-pod-prod-09-eu; Sun, 22 Sep 2024 07:46:29 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV3Y0qGkNFk8INmOFtB9/59h2Hb9o9XaPstHDOKUDlxYJI6VGTZz5fgEgEBLFW6F3zfaMKU0RmaQif7qUvv@amarulasolutions.com X-Received: by 2002:a17:906:cae2:b0:a8d:61ca:271e with SMTP id a640c23a62f3a-a90d549d1cdmr868819866b.6.1727016388761; Sun, 22 Sep 2024 07:46:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727016388; cv=none; d=google.com; s=arc-20160816; b=FLMZrAx5zRqiX6a2JFNucNNJrK9bSS1z12JFZuAWm7tpmdGiy5hYf7z2SFW04RSjXj wdOYrNBXMhj1nVkoRMkL2r1u1OKMk0Xo4jqWjeMDNmN0VEIuLw1UXVSQ2kyUHDZFopVZ dRlNrCuKPPrZkeSUPx2cRcs/9CW5YzGPJCQFECJhaO8cgf2UsjoH1JKrKb/PxDiBD5z/ 12n2jslz14VWW3vUbvavvuB7BKuL7QyAYTIT0YPROiIK9rQQJ0KnwA12vON4w8lRtF5k pyWjec3UIJTfKFcb9zAyrXuZGhcoOHjLgtoVNKzEAO2H0zzh6UG3/fhkomZa2jZHNKOm MzZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=jXKyj9QfU6TS4dahNlEkSbG4SpYUyfzDDNO0f4/oKhE=; fh=W3yfYRV1Vm8W1qClCnnfAM2XD146x67doic9t7AnCps=; b=DlqhR32bM88+pVSw11hnztUauOdMdImjSAcWRd9xlN6LKDvpN5YRQ2UJTGjiJVDhXx gmfBFto8Rw6mqX1u7LSnRnkWjtOZi6Z7Z57ZVoMgVzoeh+OHJnytG37QBI5di41ge95g g7oUVYvq34ZXhSzhlBViyS3fck8CgTTclTCEui51BmR0geniPs9VMhLaFy37HMLAy+2d +9aOoHJq6MFwfpF8tZRWTu4X0fXfB17sl5W9E+22qEYidbfh1H9rJJ3DweiDzUBr+4QJ Nn2gyBglSMa4f86Q33606VTbsEiwOs8YN0BQM9KkBuA5BPpkROgVHtc+ferG6oU3wsqr RKmA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="FQOYdCS/"; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-a90612d8504sor594154666b.13.2024.09.22.07.46.28 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Sun, 22 Sep 2024 07:46:28 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AJvYcCWi+yaTYfr0G58PGcB1afH6/gs3pY5hOMGnMbiwvALLW+cZ9o8Syjcbe6H038pCm1RYtGao3WiTbUkZ1w6g@amarulasolutions.com X-Received: by 2002:a17:907:d599:b0:a8d:5e1a:8d80 with SMTP id a640c23a62f3a-a90d5779864mr897982566b.40.1727016388245; Sun, 22 Sep 2024 07:46:28 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-20-102-52.retail.telecomitalia.it. [79.20.102.52]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9061331694sm1088425766b.210.2024.09.22.07.46.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Sep 2024 07:46:27 -0700 (PDT) From: Dario Binacchi <dario.binacchi@amarulasolutions.com> To: netdev@vger.kernel.org Cc: Stephen Hemminger <stephen@networkplumber.org>, linux-amarula@amarulasolutions.com, Dario Binacchi <dario.binacchi@amarulasolutions.com> Subject: [iproute2, RESEND PATCH 2/2] arpd: drop useless initializers Date: Sun, 22 Sep 2024 16:46:13 +0200 Message-ID: <20240922144613.2103760-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240922144613.2103760-1-dario.binacchi@amarulasolutions.com> References: <20240922144613.2103760-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="FQOYdCS/"; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/misc/arpd.c b/misc/arpd.c index b4935c23eebb..a2ae76a41f8d 100644 --- a/misc/arpd.c +++ b/misc/arpd.c @@ -439,8 +439,6 @@ static void get_kern_msg(void) struct msghdr msg = { .msg_name = &nladdr, .msg_namelen = sizeof(nladdr), .msg_iov = &iov, .msg_iovlen = 1, - .msg_control = (void *)NULL, .msg_controllen = 0, - .msg_flags = 0 }; iov.iov_base = buf;
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@amarulasolutions.com> --- misc/arpd.c | 2 -- 1 file changed, 2 deletions(-)