]> git.baikalelectronics.ru Git - kernel.git/commit
net: qed: Remove unneeded cast from memory allocation
authorWang Hai <wanghai38@huawei.com>
Wed, 22 Jul 2020 02:10:27 +0000 (10:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jul 2020 00:28:54 +0000 (17:28 -0700)
commit66c993d0d18217af703c2dd109282a1ed5db3af8
treea2449810eb83d636efb7c56ec9963e203afa856f
parent021fecdc425ba060f661aa925e06439c389c4d81
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
unction to (struct roce_destroy_qp_req_output_params *) 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/qlogic/qed/qed_roce.c