From: Christophe Jaillet Date: Fri, 4 Jul 2008 09:33:22 +0000 (-0300) Subject: V4L/DVB (8252): buf-dma-sg.c: avoid clearing memory twice X-Git-Tag: v2.6.27-rc1~966^2~120 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a47cacbd869b67ce16981ad5a0b06e4eac2efaff;p=pandora-kernel.git 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 Signed-off-by: Andrew Morton Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed