提交 0acdf68f 编写于 作者: J Joe Perches 提交者: David S. Miller

netxen: remove unnecessary [kv][mcz]alloc casts

Signed-off-by: NJoe Perches <joe@perches.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c661c4a2
...@@ -278,8 +278,7 @@ int netxen_alloc_sw_resources(struct netxen_adapter *adapter) ...@@ -278,8 +278,7 @@ int netxen_alloc_sw_resources(struct netxen_adapter *adapter)
break; break;
} }
rds_ring->rx_buf_arr = (struct netxen_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) {
printk(KERN_ERR "%s: Failed to allocate " printk(KERN_ERR "%s: Failed to allocate "
"rx buffer ring %d\n", "rx buffer ring %d\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册