]> git.baikalelectronics.ru Git - kernel.git/commit
net: sun: Remove unneeded cast from memory allocation
authorAishwarya Ramakrishnan <aishwaryarj100@gmail.com>
Sun, 19 Apr 2020 15:44:43 +0000 (21:14 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Apr 2020 19:21:21 +0000 (12:21 -0700)
commit0d435489bf06f43a7ee48e8c9ac68ca16c3e7e70
treeec0a0b5e8c8ce92e02b7e293e734002fe8e7af5a
parent7cd45c4bb2f84e07ed8eec62eca8736c1a9a55e4
net: sun: 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 cas_init_block *) is useless.

This issue was detected by using the Coccinelle software.

Signed-off-by: Aishwarya Ramakrishnan <aishwaryarj100@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/cassini.c