Re: [net-next PATCH v4 03/10] octeontx2-pf: Create representor netdev
From: Jakub Kicinski
Date: Thu May 09 2024 - 23:28:20 EST
On Tue, 7 May 2024 22:09:14 +0530 Geetha sowjanya wrote:
> + priv->reps = devm_kcalloc(priv->dev, rep_cnt, sizeof(struct rep_dev *),
> + GFP_KERNEL);
> + if (!priv->reps)
> + return -ENOMEM;
using devm_ here is pointless, the objects are not tied to the lifetime
of the device (there can be created multiple times) and you have to
unregister the netdevs manually, anyway.