diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-01-07 22:03:56 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-01-07 22:03:56 -0200 |
commit | 19206826b2ded79252069975777a4ccd92408ee8 (patch) | |
tree | 3cb42555a7ca28acf187d14fea3361c4ce1a6ece /linux/drivers/media/video/zoran_driver.c | |
parent | 7b2d351db8cb6d12561c7a58bf97908122aea601 (diff) | |
download | mediapointer-dvb-s2-19206826b2ded79252069975777a4ccd92408ee8.tar.gz mediapointer-dvb-s2-19206826b2ded79252069975777a4ccd92408ee8.tar.bz2 |
Get rid of "double zeroing" of allocated pages
From: Robert P. J. Day <rpjday@mindspring.com>
Simplify the few instances where a call to "get_zeroed_page()" is closely
followed by an unnecessary call to memset() to clear that page.
original patch Signed by Robert P. J. Day <rpjday@mindspring.com>
and Andrew Morton <akpm@osdl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/zoran_driver.c')
-rw-r--r-- | linux/drivers/media/video/zoran_driver.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/linux/drivers/media/video/zoran_driver.c b/linux/drivers/media/video/zoran_driver.c index 2c282b9ef..dfacb8fbd 100644 --- a/linux/drivers/media/video/zoran_driver.c +++ b/linux/drivers/media/video/zoran_driver.c @@ -565,7 +565,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); |