aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorHans de Goede <[email protected]>2010-12-31 05:05:56 -0300
committerMauro Carvalho Chehab <[email protected]>2011-01-19 11:44:58 -0200
commitee3629914b2b115f00f4197e80b1e7cb12881059 (patch)
treee3234e9d6c17dceec91e604782adb0e796364b1a /scripts/patch-kernel
parentd642de2ed472df308f8ee49417e29030f69b2095 (diff)
[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 <[email protected]> Acked-by: Jean-Francois Moine <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions