From: Guennadi Liakhovetski Date: Tue, 31 Mar 2009 06:44:22 +0000 (-0300) Subject: V4L/DVB (11323): pxa-camera: simplify the .buf_queue path by merging two loops X-Git-Tag: v2.6.30-rc1~136^2~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae7410e712b33d32337df80f71f702d12a8ebb81;p=pandora-kernel.git V4L/DVB (11323): pxa-camera: simplify the .buf_queue path by merging two loops pxa_dma_update_sg_tail() is called only once, runs exactly the same loop as the caller and has to recalculate the last element in an sg-list, that the caller has already calculated. Eliminate redundancy by merging the two loops and re-using the calculated pointer. This also saves a bit of performance which is always good during video-capture. Signed-off-by: Guennadi Liakhovetski Acked-by: Robert Jarzmik Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed