summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/gspca
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-07-04 06:33:22 +0000
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-04 06:33:22 +0000
commit2fac5bc7bdca8405f6dc8cd3f7dea4f9b4d4b1fa (patch)
tree20a1479d817ea7928d4aaa5f19576399ace517e9 /linux/drivers/media/video/gspca
parentf03368d89250498c6d9f48b12972121c891e5fe2 (diff)
downloadmediapointer-dvb-s2-2fac5bc7bdca8405f6dc8cd3f7dea4f9b4d4b1fa.tar.gz
mediapointer-dvb-s2-2fac5bc7bdca8405f6dc8cd3f7dea4f9b4d4b1fa.tar.bz2
buf-dma-sg.c: avoid clearing memory twice
From: Christophe Jaillet <jaillet.christophe@wanadoo.fr> 1) Remove a useless initialisation of 'i' 2) Avoid clearing the memory allocated twice (once in 'kcalloc', once in 'sg_init_table') 3) Remove a test that can never trigger. The function returns NULL in such a case, so we know that at this point 'pages[0]' != NULL Signed-off-by: Christophe Jaillet <jaillet.christophe@wanadoo.fr> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/gspca')
0 files changed, 0 insertions, 0 deletions