lkml.org 
[lkml]   [2022]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH V3] octeon_ep: Remove unnecessary cast
From
Date
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

\
 
 \ /
  Last update: 2022-05-24 12:29    [W:0.246 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site