[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <362c9237-237c-4e81-81e6-c15761baacb4@lunn.ch>
Date: Sun, 29 Jun 2025 20:17:20 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: Vladimir Oltean <olteanv@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org,
netdev@...r.kernel.org
Subject: Re: [PATCH net-next 2/2] net: dsa: mv88e6xxx: Use kcalloc()
On Sun, Jun 29, 2025 at 02:35:50PM +0200, Christophe JAILLET wrote:
> Use kcalloc() instead of hand writing it. This is less verbose.
>
> Also move the initialization of 'count' to save some LoC.
>
> On a x86_64, with allmodconfig, as an example:
> Before:
> ======
> text data bss dec hex filename
> 18652 5920 64 24636 603c drivers/net/dsa/mv88e6xxx/devlink.o
>
> After:
> =====
> text data bss dec hex filename
> 18498 5920 64 24482 5fa2 drivers/net/dsa/mv88e6xxx/devlink.o
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Reviewed-by: Andrew Lunn <andrew@...n.ch>
Andrew
Powered by blists - more mailing lists