[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>
This commit is contained in:

committed by
Linus Torvalds

parent
78ba2faf71
commit
aa58d61d18
@@ -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;
|
||||
|
Reference in New Issue
Block a user