diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2007-02-10 04:45:46 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 13:51:31 -0500 |
commit | aa58d61d18b89b98521364550b481fd9bd18c3b6 (patch) | |
tree | 26f6fd9cbaf6bc3c7d940d33069b3b701cc41e72 /drivers/media | |
parent | 78ba2faf71c63990cba9997f18cf1d610e06e3f2 (diff) |
[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/media')
-rw-r--r-- | drivers/media/video/zoran_driver.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/video/zoran_driver.c b/drivers/media/video/zoran_driver.c index 862a984c2155..e10a9ee25fc5 100644 --- a/drivers/media/video/zoran_driver.c +++ b/drivers/media/video/zoran_driver.c | |||
@@ -562,7 +562,6 @@ jpg_fbuffer_alloc (struct file *file) | |||
562 | jpg_fbuffer_free(file); | 562 | jpg_fbuffer_free(file); |
563 | return -ENOBUFS; | 563 | return -ENOBUFS; |
564 | } | 564 | } |
565 | memset((void *) mem, 0, PAGE_SIZE); | ||
566 | fh->jpg_buffers.buffer[i].frag_tab = (u32 *) mem; | 565 | fh->jpg_buffers.buffer[i].frag_tab = (u32 *) mem; |
567 | fh->jpg_buffers.buffer[i].frag_tab_bus = | 566 | fh->jpg_buffers.buffer[i].frag_tab_bus = |
568 | virt_to_bus((void *) mem); | 567 | virt_to_bus((void *) mem); |