From: Hans de Goede Date: Fri, 31 Dec 2010 08:05:56 +0000 (-0300) Subject: [media] gspca_main: Simplify read mode memory type checks X-Git-Tag: v2.6.38-rc2~1^2~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee3629914b2b115f00f4197e80b1e7cb12881059;p=pandora-kernel.git [media] gspca_main: Simplify read mode memory type checks gspca_dev->memory == GSPCA_MEMORY_NO implies gspca_dev->nframes == 0, so there is no need to check for both in dev_poll. The check in dev_read also is more complex then needed, as dqbuf which dev_read calls already does all necessary checks. Moreover dqbuf is holding the proper locks while checking where as dev_read itself is not. Signed-off-by: Hans de Goede Acked-by: Jean-Francois Moine Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed