Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3637141pxv; Mon, 12 Jul 2021 23:43:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYts61fzSSzy/MfrzIDGHRIVf71/kr+Z08yseOP+YdVu6nrm5+FnHhU7sHTk7YUtnHTc58 X-Received: by 2002:a17:906:d045:: with SMTP id bo5mr3779343ejb.461.1626158601877; Mon, 12 Jul 2021 23:43:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626158601; cv=none; d=google.com; s=arc-20160816; b=ETiXOfsQ9ZV2EGHdvKmVn9CM7wDvbAb73oxcDSbUSCmhkP71BovluBp/C2c8bmClMB 3y/MeUz7iUL8eq32PppZtr6Elmd82vi2QAVNiMa72QFDRWjfbILgGhOSzifJ9tErn5aH FDyNNGdcsQUDRwyxIVGh1fxlczgAwySLfnH46aTWVfJqjfZx0FcZ2di0wpgDX3PNWiiH NyZYfk0F2Ko4NqNrW5ToxXYXUhrRHxQe+DHTy3Z8uIQX708N8A/luRA5cMgfCkOSIUAJ /1HI1dAyG4Q/zxNCfi7J0rQD97Z3fQc3Zh08/ZKW3voprDwxGJKO/Un5vFgm8k3Es3Uy HhOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=wzPa1yQlnWCr3GwfO9K1lRQVB1741si/Yzh8c+5eALw=; b=N3NjJ+wM5FVpw1xKJ/eDd6PPno1RrIgoAUF4zFAvtluSUbv0VrJ17w9u3z9dT1DPJw WsaiZ4e+4LEUEG64VeXWCe4bY/bhsCrcQoLZqhAZuNYkoGk9uZwuJipYmJDtU/Sfio3u q5n/6UN0mp20bbYpwN7Eu4ntmuEqELvfeb12FuY/+L8dpksoVDu14ymaQ6AslH2DXubo cDnxOs7TFe4U//aCdzVAeXZtmdjAKKG/nT+q8+wHa2RCzUplaaQWXOW6M6Q+fBE7qQ78 UxLiyJD/U8AtAugE5rxg7e08XmgY7wIJm4O1prXP/b/wPHUdBSRMUS9VEZJiGjed5Me3 9rOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g17si23147768ejr.586.2021.07.12.23.42.57; Mon, 12 Jul 2021 23:43:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233894AbhGMGoE (ORCPT + 99 others); Tue, 13 Jul 2021 02:44:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232908AbhGMGoE (ORCPT ); Tue, 13 Jul 2021 02:44:04 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6A95C0613DD for ; Mon, 12 Jul 2021 23:41:14 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3C6N-0006Zg-E5; Tue, 13 Jul 2021 08:41:07 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1m3C6K-0006P1-Py; Tue, 13 Jul 2021 08:41:04 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1m3C6K-0000np-P0; Tue, 13 Jul 2021 08:41:04 +0200 Date: Tue, 13 Jul 2021 08:41:01 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Salah Triki Cc: kevin.curtis@farsite.co.uk, davem@davemloft.net, kuba@kernel.org, stephen@networkplumber.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] delete useless for loop Message-ID: <20210713064101.kmqwms6aon2myakp@pengutronix.de> References: <20210712205848.GA1492971@pc> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3id3qk4l6sglt4ek" Content-Disposition: inline In-Reply-To: <20210712205848.GA1492971@pc> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --3id3qk4l6sglt4ek Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Salah, On Mon, Jul 12, 2021 at 09:58:48PM +0100, Salah Triki wrote: > Delete useless initialization of fst_card_array since the default > initialization is NULL. >=20 > Signed-off-by: Salah Triki > --- > drivers/net/wan/farsync.c | 4 ---- > 1 file changed, 4 deletions(-) >=20 > diff --git a/drivers/net/wan/farsync.c b/drivers/net/wan/farsync.c > index b3466e084e84..0b3f561d5d5e 100644 > --- a/drivers/net/wan/farsync.c > +++ b/drivers/net/wan/farsync.c > @@ -2565,10 +2565,6 @@ static struct pci_driver fst_driver =3D { > static int __init > fst_init(void) > { > - int i; > - > - for (i =3D 0; i < FST_MAX_CARDS; i++) > - fst_card_array[i] =3D NULL; > return pci_register_driver(&fst_driver); > } Looks right. I wonder if it makes sense to go even further and let farsync.c use module_pci_driver. Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --3id3qk4l6sglt4ek Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmDtNXoACgkQwfwUeK3K 7AnG8wgAjnz0nqKmlTJ7V2zmhTKUNSQl0R4h4E+uNuztLIMHVz5Y2/3T73jaAVf/ WKL+TrCB4vOJTjlqA6ZmL//p4Ua3ZqgGuanEN+bx/8QG9PZxN0ShIC33XXq+n7SY 4cVyotvebIH5SFC/5nkqHKoGTlQ6OzEeIZVUyjKgrtmCwPrCdWpDUWncet2DN7A9 kOzs7sS7qphBM6YdCSeM5PpB/pNf0AGOM/zc6NFwsbz4tqTvc7Jgf43msF0YsHt5 nfJrEose6dOAYxSwvwDWrM9yTxFNMy/6XP1MAdytVLvr2LXSBim0MYs1OmBWneOD FxP9iJ0BhknzhNlkAOij8sP+N7w+5Q== =HU7c -----END PGP SIGNATURE----- --3id3qk4l6sglt4ek--