From patchwork Sat Sep 28 09:03:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3535 Return-Path: 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 8B7F03F38F for ; Sat, 28 Sep 2024 11:24:12 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-5c829e582e5sf1924974a12.1 for ; Sat, 28 Sep 2024 02:24:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1727515452; cv=pass; d=google.com; s=arc-20240605; b=A3buSYLehpQYxwMotvtgZhyplmS23sE0pycxMw80jwTpVTl2nXPk36uKYrZYSqqWhZ baxxDW2CRr+RDUcRwxoxhhcUJsA46p1p0xh7r+eYxAaDDGsLKjhXumOQf+EgHaNcPvEM tAHOzt1vIG0s46UCozUn5+nKgdLqaXm6Wm5bm5HyJ5WybM8rtL0tIcDKByRRt+CUSSrX WlW8ecxXgof6byr5uAoMZfzdejmQr1cZeOiogT7rlfxOGBAcFZIfzxZZ1pZdk37Lrcti OWsXd21K5GwB+AmcUm8orwhmyJNGIrK2UPg/qGEx8VZvwkqmwg2WsYJhq0M0Dj1paI/8 RJGA== 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=LrewQV40akDCVbOqtiCozczUw7FJGF0rjIlhjthOlJM=; fh=jaX3TFLojPljdvaBTNI3PXS5Sx07PVjEgBM2JAco7CM=; b=B9k1KbrDvEqpIpwYS/YicUY7crgMQ5cACW/1tDQdSSTEpactM72yQ7MB1fHs0vBq77 GEca/MWuO5WIoJwNSSzp7T0T1oq+W85zVBZqTMl+GoappUUEpKZ6ujF4D5rTb5M8JYlH To/gNS9eMMXn83khdxJRw4t4zFcGDrb7LwQmNjJbL9SmrKkC0FCdfFnqVWOJQjVQbsB5 D0FfzqlYt91vrL/mOaz74vZsqBCaK/nk6uGpi/5xOvWaBms+uqZaBjttS1iWqcM4OSfL DOKORhh696/zVUkbKovIlMr9yv4JdGrRZNRs/m0J0leOGmJPfG256D9Oy9Tp+ok2OnV1 P6Dw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bAGQOyv0; 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=1727515452; x=1728120252; 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=LrewQV40akDCVbOqtiCozczUw7FJGF0rjIlhjthOlJM=; b=PIiLy7YF/PzBsk5TsCB0Fctkf60vIKRet05B2Yvc5PnRE9TX2GyNZecltis+8rbyYS hKMSfb7LOSz6MdCaZbbyr0745CnBHqDRDtF1ssBOEyFQJpT5sEW4OYNES/OC1wkbecQs Mu0Awd+YeHBptG2bpRJyG7uujVb9/SxYj3+g4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727515452; x=1728120252; 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=LrewQV40akDCVbOqtiCozczUw7FJGF0rjIlhjthOlJM=; b=QnSoQc5TDFC1sHdXD50GJYV2bHvlgUUilInrd/sE0k0fhoYUPOGERkOZJNmnsv1yJT rXjU6T9CO5R4VUAg4nCBfEXhIAg6efMUOVeaHLnv1D1XqYxS84PCiCuGwjrEnSSLTFxY cQdojswLNuJWNxnhcSVOmZGS4BQ49xtwmoTZUzWkUCbc2qI/3TvhqEPbnGgOOcFsNzEo jePazCjrQolqzsE1qp7VKUuJg/3uWCS984lAxQun6Qc9EvkSJ8rm/ao2lv3hLCh2/U99 sY1hrdJETSskvlmOD41Xi/ZOWx4pJEt2u9EzyVTg+g4QjojHED5FpjKra8TF6ac0aZkN n1Rw== X-Forwarded-Encrypted: i=2; AJvYcCVD3H+W5j5qw5/Jg9ULL015h6f6j2RIecEWFReqGF5DBQvHcTA9WyXowb0zGoTZWBQrERtBNWfX3T5NOMAX@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YxqHWJXdJ5R1igRTNx5HMJNQMP0Bu6o3qABZE8JRFoNR/b8B1Xu +1XeFhhiuaHPLfgF8KeRV0pKPKSTEAdQDWZ6QtZZ8w4zA7LwgdxlUVZg2XV4u55zBA== X-Google-Smtp-Source: AGHT+IEOjOM72dgLJZ/9YhPu71QAZlOVvwZTpwtKgz8M1ZyRVMkRvQw7U8fJ/DNnlSH/V9olSy757A== X-Received: by 2002:a05:6402:13ce:b0:5c8:850d:ad44 with SMTP id 4fb4d7f45d1cf-5c8850daec0mr3298609a12.27.1727515451784; Sat, 28 Sep 2024 02:24:11 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:5113:b0:5c2:480e:7966 with SMTP id 4fb4d7f45d1cf-5c8777f6a82ls59440a12.1.-pod-prod-08-eu; Sat, 28 Sep 2024 02:24:10 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWG8SwTvNcMJ7tqMW0YeGyeb6MEQfHQkCHinyQq7szNemXxBJ1Z/9JstyDH0XCA5SAqm+2qlux8FLxsxo9o@amarulasolutions.com X-Received: by 2002:a05:6402:1ec1:b0:5c5:c5c0:74ec with SMTP id 4fb4d7f45d1cf-5c882601cadmr5844371a12.24.1727515450208; Sat, 28 Sep 2024 02:24:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1727515450; cv=none; d=google.com; s=arc-20160816; b=akfu3Vdqt3gF51DHluDn1GZZIJ5XKAd8/WpKRuFC1ZG5U5OfFRmqkSC5HJrWiC4QA2 nx+FxJMDNs65tjkUJXl7oCGsO17mZNEwv9tQ9qtI7LBQ1AUSLsrEKBL+Dsc7Db1SclPk ZXibe4osEBx5f0+0zIFElKQGPepRzVjO9TqAuNR9KTARcGhIpXmJdpoNWRG3h0Z4lk4T LfmBiBbFzvb0XW//QeS1cZ+XIFpnUiZr+j3QuzDjUljQfvBgf/tfstJGWajqzJg6N2O+ 3nk8YGgNDu96s6UHgn0BMOBzrQvjqMlhYMwzord9CmKIOORu7rQcc91hninx5KLMmIio xBMA== 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=rjIc1J/QOg1BolbQLwdYwIZ4pu/ITooUKCVTfwuJFjo=; fh=6zGY0KG49TX/nRjhlH5IIjuo1S2WME9N07Q8a8D5VUc=; b=Hv0Lvaw11EWe6WSiixYZ3RAGhxisfqK45j77Mj4Y/EEeMoGySTNOlmbFbVVIzBvVAi 6VuZggv2KV0SLhHNj8k2WutfHhAwn+F4nuMQ+L5GU5KuTz4XwGmDwi6pWuAeKjCh2FF5 dKtLzO8PVh3w2UKK7m8kpNr2DbSoRCawlTO1jnn57Ko1vhBzHJBky/xUU85XZwVdHK+0 0diHmBFUZhHdVCNoxbfShEGfh5ZJs2IAiR+a28Da22S4ARFTH+4lU3cn8FLdzoB1IS9j bANAcJmSwl3q+L2HVfRLuWMI17b7jfifWY2361xG3JpfdtCS8twJyuYk+wmvg5SC2auR PGZA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bAGQOyv0; 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 4fb4d7f45d1cf-5c8823cd978sor1007252a12.0.2024.09.28.02.24.10 for (Google Transport Security); Sat, 28 Sep 2024 02:24:10 -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; AJvYcCUOh3gURnJfEpLuNOpX4+HWkjj46V/ZYlSXIpCwyVJsjisj8UUOV6o8pgjdFEgw3R3IJ8sDzKc08GiJ+pT/@amarulasolutions.com X-Received: by 2002:a05:6402:354c:b0:5c6:b7e0:a363 with SMTP id 4fb4d7f45d1cf-5c882601ba6mr4620373a12.23.1727515449672; Sat, 28 Sep 2024 02:24:09 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-54-102-102.retail.telecomitalia.it. [79.54.102.102]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5c88248c672sm2104213a12.60.2024.09.28.02.24.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Sep 2024 02:24:08 -0700 (PDT) From: Dario Binacchi To: netdev@vger.kernel.org Cc: Stephen Hemminger , linux-amarula@amarulasolutions.com, Dario Binacchi Subject: [iproute2, PATCH v2 2/2] arpd: drop useless initializers Date: Sat, 28 Sep 2024 11:03:12 +0200 Message-ID: <20240928090312.1079952-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240928090312.1079952-1-dario.binacchi@amarulasolutions.com> References: <20240928090312.1079952-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=bAGQOyv0; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 --- 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;