diff options
| author | Hans de Goede <hdegoede@redhat.com> | 2010-12-31 05:05:56 -0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-01-19 11:44:58 -0200 |
| commit | ee3629914b2b115f00f4197e80b1e7cb12881059 (patch) | |
| tree | e3234e9d6c17dceec91e604782adb0e796364b1a /scripts/patch-kernel | |
| parent | d642de2ed472df308f8ee49417e29030f69b2095 (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 <hdegoede@redhat.com>
Acked-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
