[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20200730.174124.1077558881160047416.davem@davemloft.net>
Date: Thu, 30 Jul 2020 17:41:24 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: liheng40@...wei.com
Cc: michael.chan@...adcom.com, kuba@...nel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next] bnxt_en: Remove superfluous memset()
From: Li Heng <liheng40@...wei.com>
Date: Thu, 30 Jul 2020 14:43:50 +0800
> Fixes coccicheck warning:
>
> ./drivers/net/ethernet/broadcom/bnxt/bnxt.c:3730:19-37: WARNING:
> dma_alloc_coherent use in stats -> hw_stats already zeroes out
> memory, so memset is not needed
>
> dma_alloc_coherent use in status already zeroes out memory,
> so memset is not needed
>
> Reported-by: Hulk Robot <hulkci@...wei.com>
> Signed-off-by: Li Heng <liheng40@...wei.com>
Applied.
Powered by blists - more mailing lists