linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Re: Fwd: [PATCH] net: microchip: sparx5: Remove unneeded variable
       [not found] ` <d70ab6d10972330290c4c810d61df193@208suo.com>
@ 2023-06-14 11:29   ` Steen Hegelund
  0 siblings, 0 replies; only message in thread
From: Steen Hegelund @ 2023-06-14 11:29 UTC (permalink / raw)
  To: baomingtong001, davem, edumazet, kuba, pabeni, lars.povlsen,
	daniel.machon, UNGLinuxDriver, horatiu.vultur
  Cc: netdev, linux-arm-kernel

Hi Bao,

I could not apply your patch as there seems to be no message id in the mail
headers.  I also could not find it on patchwork, so it seems like it has been
ignored there.

Could you please resend this with the proper details - otherwise the change
looks good to me.

BR
Steen

On Tue, 2023-06-13 at 17:53 +0800, baomingtong001@208suo.com wrote:
> 
>  You don't often get email from baomingtong001@208suo.com. Learn why this is
> important
> 
> 
> 
> 
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the
> content is safe
> 
> 
> Fix the following coccicheck warning:
> 
> drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c:1435:5-8: Unneeded
> variable: "err".
> 
> Signed-off-by: Mingtong Bao <baomingtong001@208suo.com>
> ---
>  drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c
> b/drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c
> index 3f87a5285a6d..03a9b226c9c5 100644
> --- a/drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c
> +++ b/drivers/net/ethernet/microchip/sparx5/sparx5_tc_flower.c
> @@ -1432,7 +1432,6 @@ static int sparx5_tc_flower_template_destroy(struct
> net_device *ndev,
>  {
>      struct sparx5_port *port = netdev_priv(ndev);
>      struct sparx5_tc_flower_template *ftp, *tmp;
> -    int err = -ENOENT;
>  
>      /* Rules using the template are removed by the tc framework */
>      list_for_each_entry_safe(ftp, tmp, &port->tc_templates, list) {
> @@ -1447,7 +1446,7 @@ static int sparx5_tc_flower_template_destroy(struct
> net_device *ndev,
>          kfree(ftp);
>          break;
>      }
> -    return err;
> +    return -ENOENT;
>  }
>  
>  int sparx5_tc_flower(struct net_device *ndev, struct flow_cls_offload *fco,


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-14 11:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20230613094921.19836-1-luojianhong@cdjrlc.com>
     [not found] ` <d70ab6d10972330290c4c810d61df193@208suo.com>
2023-06-14 11:29   ` Fwd: [PATCH] net: microchip: sparx5: Remove unneeded variable Steen Hegelund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).