OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0acdf68
)
qlcnic: remove unnecessary [kv][mcz]alloc casts
author
Joe Perches
<joe@perches.com>
Sat, 27 Nov 2010 23:05:44 +0000
(23:05 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 29 Nov 2010 01:26:23 +0000
(17:26 -0800)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic_init.c
patch
|
blob
|
history
diff --git
a/drivers/net/qlcnic/qlcnic_init.c
b/drivers/net/qlcnic/qlcnic_init.c
index
3f97018
..
c5ea2f4
100644
(file)
--- 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);