summaryrefslogtreecommitdiffstats
path: root/drivers/atm/eni.c
diff options
context:
space:
mode:
authorRobert P. J. Day2007-02-10 10:45:46 +0100
committerLinus Torvalds2007-02-11 19:51:31 +0100
commitaa58d61d18b89b98521364550b481fd9bd18c3b6 (patch)
tree26f6fd9cbaf6bc3c7d940d33069b3b701cc41e72 /drivers/atm/eni.c
parent[PATCH] IPMI: Fix some RCU problems (diff)
downloadkernel-qcow2-linux-aa58d61d18b89b98521364550b481fd9bd18c3b6.tar.gz
kernel-qcow2-linux-aa58d61d18b89b98521364550b481fd9bd18c3b6.tar.xz
kernel-qcow2-linux-aa58d61d18b89b98521364550b481fd9bd18c3b6.zip
[PATCH] Get rid of "double zeroing" of allocated pages
Simplify the few instances where a call to "get_zeroed_page()" is closely followed by an unnecessary call to memset() to clear that page. Signed-off-by: Robert P. J. Day <rpjday@mindspring.com> Cc: chas williams <chas@cmf.nrl.navy.mil> Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org> Cc: James Bottomley <James.Bottomley@steeleye.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/atm/eni.c')
-rw-r--r--drivers/atm/eni.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/atm/eni.c b/drivers/atm/eni.c
index 5aab7bd473ac..8fccf018f165 100644
--- a/drivers/atm/eni.c
+++ b/drivers/atm/eni.c
@@ -912,7 +912,6 @@ static int start_rx(struct atm_dev *dev)
free_page((unsigned long) eni_dev->free_list);
return -ENOMEM;
}
- memset(eni_dev->rx_map,0,PAGE_SIZE);
eni_dev->rx_mult = DEFAULT_RX_MULT;
eni_dev->fast = eni_dev->last_fast = NULL;
eni_dev->slow = eni_dev->last_slow = NULL;