staging: net: netlogic: Remove unneeded cast
authorChristopher Diaz Riveros <chrisadr@gentoo.org>
Tue, 20 Feb 2018 16:30:33 +0000 (11:30 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Feb 2018 13:59:05 +0000 (14:59 +0100)
commit5841b903371e830fb5b75dc917998277ca7d4ee6
tree1f8eb0c26cfdfd409eed5bd06a4e6463d4f442c9
parent444634f5ed6f0179cd63ff09bea62c03963ad0f9
staging: net: netlogic: Remove unneeded cast

Fix Coccinelle alert:

drivers/staging//netlogic/xlr_net.c:996:12-30: WARNING: casting value returned by memory allocation function to (struct xlr_adapter *) is useless.

This issue was detected by using the Coccinelle software.

Signed-off-by: Christopher Diaz Riveros <chrisadr@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/netlogic/xlr_net.c