Re: [PATCH] net: qed: Remove unneeded cast from memory allocation

From: David Miller
Date: Mon Apr 20 2020 - 15:23:29 EST


From: Aishwarya Ramakrishnan <aishwaryarj100@xxxxxxxxx>
Date: Sun, 19 Apr 2020 21:59:17 +0530

> Remove casting the values returned by memory allocation function.
>
> Coccinelle emits WARNING: casting value returned by memory allocation
> function to struct pointer is useless.
>
> This issue was detected by using the Coccinelle.
>
> Signed-off-by: Aishwarya Ramakrishnan <aishwaryarj100@xxxxxxxxx>

Applied to net-next, thanks.