Skip to content

Commit

Permalink
netxen: remove unnecessary [kv][mcz]alloc casts
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Joe Perches authored and David S. Miller committed Nov 29, 2010
1 parent c661c4a commit 0acdf68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/netxen/netxen_nic_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,7 @@ int netxen_alloc_sw_resources(struct netxen_adapter *adapter)
break;

}
rds_ring->rx_buf_arr = (struct netxen_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) {
printk(KERN_ERR "%s: Failed to allocate "
"rx buffer ring %d\n",
Expand Down

0 comments on commit 0acdf68

Please sign in to comment.