net: qed: Remove unneeded cast from memory allocation
authorAishwarya Ramakrishnan <aishwaryarj100@gmail.com>
Sun, 19 Apr 2020 16:29:17 +0000 (21:59 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Apr 2020 19:23:06 +0000 (12:23 -0700)
commit745e5ad5084db32e093a143de324afa4ed95f14d
tree6ddb292b8f1e5ef062eafddf1b0ca78284324a72
parent5333fdbed0c860c7a17dc12f328203d29947eff7
net: qed: Remove unneeded cast from memory allocation

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@gmail.com>
Acked-by: Michal KalderonĀ <michal.kalderon@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_roce.c