V4L/DVB (8252): buf-dma-sg.c: avoid clearing memory twice
authorChristophe Jaillet <jaillet.christophe@wanadoo.fr>
Fri, 4 Jul 2008 09:33:22 +0000 (06:33 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 20 Jul 2008 10:19:10 +0000 (07:19 -0300)
commita47cacbd869b67ce16981ad5a0b06e4eac2efaff
tree936ba20bf1c5395e94ab95ce2cdd78801898a2fe
parenta8a89b7f60f18c2517c3b950f5ecede0626363eb
V4L/DVB (8252): buf-dma-sg.c: avoid clearing memory twice

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>
drivers/media/video/videobuf-dma-sg.c