qlcnic: remove unnecessary [kv][mcz]alloc casts
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
0acdf68f49
commit
f316746014
1 changed files with 1 additions and 2 deletions
|
@ -274,8 +274,7 @@ int qlcnic_alloc_sw_resources(struct qlcnic_adapter *adapter)
|
||||||
rds_ring->dma_size + NET_IP_ALIGN;
|
rds_ring->dma_size + NET_IP_ALIGN;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
rds_ring->rx_buf_arr = (struct qlcnic_rx_buffer *)
|
rds_ring->rx_buf_arr = vzalloc(RCV_BUFF_RINGSIZE(rds_ring));
|
||||||
vzalloc(RCV_BUFF_RINGSIZE(rds_ring));
|
|
||||||
if (rds_ring->rx_buf_arr == NULL) {
|
if (rds_ring->rx_buf_arr == NULL) {
|
||||||
dev_err(&netdev->dev, "Failed to allocate "
|
dev_err(&netdev->dev, "Failed to allocate "
|
||||||
"rx buffer ring %d\n", ring);
|
"rx buffer ring %d\n", ring);
|
||||||
|
|
Reference in a new issue