summaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-11-27 23:05:44 +0000
committerDavid S. Miller <davem@davemloft.net>2010-11-28 17:26:23 -0800
commitf3167460144cd2c24b964a32d40d32f851b5d5f4 (patch)
tree323a9831fbd3a1b2bd7bddbffc7dde406e6849a4 /drivers/net/qlcnic
parent0acdf68f495793143802dd4f3e47918dddcceed7 (diff)
downloadblackbird-op-linux-f3167460144cd2c24b964a32d40d32f851b5d5f4.tar.gz
blackbird-op-linux-f3167460144cd2c24b964a32d40d32f851b5d5f4.zip
qlcnic: remove unnecessary [kv][mcz]alloc casts
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic')
-rw-r--r--drivers/net/qlcnic/qlcnic_init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/qlcnic/qlcnic_init.c b/drivers/net/qlcnic/qlcnic_init.c
index 3f970187cfce..c5ea2f4eb980 100644
--- a/drivers/net/qlcnic/qlcnic_init.c
+++ b/drivers/net/qlcnic/qlcnic_init.c
@@ -274,8 +274,7 @@ int qlcnic_alloc_sw_resources(struct qlcnic_adapter *adapter)
rds_ring->dma_size + NET_IP_ALIGN;
break;
}
- rds_ring->rx_buf_arr = (struct qlcnic_rx_buffer *)
- vzalloc(RCV_BUFF_RINGSIZE(rds_ring));
+ rds_ring->rx_buf_arr = vzalloc(RCV_BUFF_RINGSIZE(rds_ring));
if (rds_ring->rx_buf_arr == NULL) {
dev_err(&netdev->dev, "Failed to allocate "
"rx buffer ring %d\n", ring);
OpenPOWER on IntegriCloud