Re: [PATCH v2 2/4] net: ethernet: altera: fix indentation warnings

From: Simon Horman
Date: Sat Dec 23 2023 - 09:57:48 EST


On Thu, Dec 21, 2023 at 09:40:39PM +0800, deepakx.nagaraju@xxxxxxxxx wrote:
> From: Nagaraju DeepakX <deepakx.nagaraju@xxxxxxxxx>
>
> Fix indentation issues such as missing a blank line after declarations
> and alignment issues.
>
> Signed-off-by: Nagaraju DeepakX <deepakx.nagaraju@xxxxxxxxx>
> Reviewed-by: Andy Schevchenko <andriy.schevchenko@xxxxxxxxxxxxxxx>

...

> diff --git a/drivers/net/ethernet/altera/altera_tse_main.c b/drivers/net/ethernet/altera/altera_tse_main.c
> index 1c8763be0e4b..6a1a004ea693 100644
> --- a/drivers/net/ethernet/altera/altera_tse_main.c
> +++ b/drivers/net/ethernet/altera/altera_tse_main.c
> @@ -258,14 +258,12 @@ static int alloc_init_skbufs(struct altera_tse_private *priv)
> int i;
>
> /* Create Rx ring buffer */
> - priv->rx_ring = kcalloc(rx_descs, sizeof(struct tse_buffer),
> - GFP_KERNEL);
> + priv->rx_ring = kcalloc(rx_descs, sizeof(struct tse_buffer), GFP_KERNEL);
> if (!priv->rx_ring)
> goto err_rx_ring;
>
> /* Create Tx ring buffer */
> - priv->tx_ring = kcalloc(tx_descs, sizeof(struct tse_buffer),
> - GFP_KERNEL);
> + priv->tx_ring = kcalloc(tx_descs, sizeof(struct tse_buffer), GFP_KERNEL);

Hi,

Networking still prefers code that is less than 80 columns wide.
So I think the above changes are not desirable.

The rest of the patch looks find to me, assuming the maintainers want to
take cosmetic changes of this nature. Which, personally, I lean to thinking
is ok in the context of the rest of this patch-set.

> if (!priv->tx_ring)
> goto err_tx_ring;
>

...