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

From: David Miller
Date: Mon Apr 20 2020 - 15:21:44 EST


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

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

Applied to net-next, thanks.