mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -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
|
|
@ -562,7 +562,6 @@ jpg_fbuffer_alloc (struct file *file)
|
|||
jpg_fbuffer_free(file);
|
||||
return -ENOBUFS;
|
||||
}
|
||||
memset((void *) mem, 0, PAGE_SIZE);
|
||||
fh->jpg_buffers.buffer[i].frag_tab = (u32 *) mem;
|
||||
fh->jpg_buffers.buffer[i].frag_tab_bus =
|
||||
virt_to_bus((void *) mem);
|
||||
|
|
|
|||
Loading…
Reference in a new issue