diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-03-10 18:25:20 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-03-10 18:25:20 +0000 |
commit | 9facda957035b773e44e5aac7eff7f5cce99fe5e (patch) | |
tree | 997dd36f3f34365de9a6c42e27d7dad0243093ef /target/linux/cns3xxx/files/drivers/net/ethernet | |
parent | c44506fcbd3657d90f27bc790f4aa22add84db6b (diff) | |
download | master-31e0f0ae-9facda957035b773e44e5aac7eff7f5cce99fe5e.tar.gz master-31e0f0ae-9facda957035b773e44e5aac7eff7f5cce99fe5e.tar.bz2 master-31e0f0ae-9facda957035b773e44e5aac7eff7f5cce99fe5e.zip |
cns3xxx: use kmalloc instead of kzalloc for ethernet rx buffers
SVN-Revision: 35943
Diffstat (limited to 'target/linux/cns3xxx/files/drivers/net/ethernet')
-rw-r--r-- | target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c b/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c index 7309d9ea77..4bf7a9888a 100644 --- a/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c +++ b/target/linux/cns3xxx/files/drivers/net/ethernet/cavium/cns3xxx_eth.c @@ -514,7 +514,7 @@ static void cns3xxx_alloc_rx_buf(struct sw *sw, int received) unsigned int phys; for (received += rx_ring->alloc_count; received > 0; received--) { - buf = kzalloc(RX_SEGMENT_ALLOC_SIZE, GFP_ATOMIC); + buf = kmalloc(RX_SEGMENT_ALLOC_SIZE, GFP_ATOMIC); if (!buf) break; |