]> git.baikalelectronics.ru Git - kernel.git/commit
net: hix5hd2_gmac: Remove unneeded cast from memory allocation
authorWang Hai <wanghai38@huawei.com>
Fri, 24 Jul 2020 13:46:30 +0000 (21:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jul 2020 00:28:51 +0000 (17:28 -0700)
commit1aaa859ed0f98f1b2e7262b04b7f3c893f9402c2
treec7bf2f52943799813803abd752ea4706e432363b
parent544b92b2a1eb1391d52347fb1d270c22a0919085
net: hix5hd2_gmac: Remove unneeded cast from memory allocation

Remove casting the values returned by memory allocation function.

Coccinelle emits WARNING:

./drivers/net/ethernet/hisilicon/hix5hd2_gmac.c:1027:9-23: WARNING:
 casting value returned by memory allocation function to (struct sg_desc *) is useless.

This issue was detected by using the Coccinelle software.

Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hix5hd2_gmac.c