mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[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 <[email protected]> Cc: chas williams <[email protected]> Acked-by: Mauro Carvalho Chehab <[email protected]> Cc: James Bottomley <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
78ba2faf71
commit
aa58d61d18
3 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue