Messages in this thread | | | Subject | Re: [PATCH V3] octeon_ep: Remove unnecessary cast | From | Paolo Abeni <> | Date | Tue, 24 May 2022 12:27:51 +0200 |
| |
Hello,
On Tue, 2022-05-24 at 14:41 +0800, Haowen Bai wrote: > ./drivers/net/ethernet/marvell/octeon_ep/octep_rx.c:161:18-40: WARNING: > casting value returned by memory allocation function to (struct > octep_rx_buffer *) is useless. > > and we do more optimization: > 1. remove casting value > 2. use obvious size > 3. use kvcalloc instead of vzalloc > > Signed-off-by: Haowen Bai <baihaowen@meizu.com>
This looks like net-next material and net-next is closed for the next 2 weeks:
http://vger.kernel.org/~davem/net-next.html
Please repost when it re-opens.
Thanks,
Paolo
| |