mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 17:01:14 +00:00
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>
This commit is contained in:
parent
fb16d465f7
commit
7979a7d2ab
1 changed files with 1 additions and 2 deletions
|
@ -757,8 +757,7 @@ static int qed_roce_sp_destroy_qp_requester(struct qed_hwfn *p_hwfn,
|
||||||
if (!qp->req_offloaded)
|
if (!qp->req_offloaded)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
p_ramrod_res = (struct roce_destroy_qp_req_output_params *)
|
p_ramrod_res = dma_alloc_coherent(&p_hwfn->cdev->pdev->dev,
|
||||||
dma_alloc_coherent(&p_hwfn->cdev->pdev->dev,
|
|
||||||
sizeof(*p_ramrod_res),
|
sizeof(*p_ramrod_res),
|
||||||
&ramrod_res_phys, GFP_KERNEL);
|
&ramrod_res_phys, GFP_KERNEL);
|
||||||
if (!p_ramrod_res) {
|
if (!p_ramrod_res) {
|
||||||
|
|
Loading…
Reference in a new issue