mirror of
https://github.com/torvalds/linux.git
synced 2025-01-01 15:51:46 +00:00
qed: Remove useless set memory to zero use memset()
The memory return by kzalloc() has already be set to zero, so remove useless memset(0). Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
aa0938c6d7
commit
4251e7475d
@ -2747,7 +2747,6 @@ static int qed_roce_ll2_start(struct qed_dev *cdev,
|
||||
DP_ERR(cdev, "qed roce ll2 start: failed memory allocation\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
memset(roce_ll2, 0, sizeof(*roce_ll2));
|
||||
roce_ll2->handle = QED_LL2_UNUSED_HANDLE;
|
||||
roce_ll2->cbs = params->cbs;
|
||||
roce_ll2->cb_cookie = params->cb_cookie;
|
||||
|
Loading…
Reference in New Issue
Block a user