]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB: gspca_main: some input error handling fixes
authorHans de Goede <hdegoede@redhat.com>
Fri, 19 Feb 2010 07:41:40 +0000 (04:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:11:09 +0000 (15:11 -0300)
commit6c255c3dce3643da6e197cb351fdd9c8d2fbd6b5
tree3d12e11eeaaa9a96362a99de3e0fa6ca76399bc1
parent319d1fb3fbf76e51caa625748ecb1ab979fec722
V4L/DVB: gspca_main: some input error handling fixes

2 small changes to input device error handling:
1) Make it fatal when we fail to create an input device (it is either this
   or add checks for gspca_dev->input_dev being NULL in a lot of places)
2) Since we allow gspca_input_create_urb() to fail everywhere we call it,
   and thus never check its return value, make it void.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c