Subject: Re: [net-next PATCH v4 03/10] octeontx2-pf: Create representor netdev

From: Jakub Kicinski <[email-masked]>
Date: Thu, 9 May 2024 20:28:08 -0700

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.