[media] pwc-if: must check vb2_queue_init() success
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 27 Oct 2012 17:26:25 +0000 (14:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 28 Oct 2012 09:38:32 +0000 (07:38 -0200)
commiteda94710d6502672c5ee7de198fa78a63ddfae3a
tree4be055893c2a45a388880542b7b3a0f76caa22d4
parent0dc6eb9ffcd350453eef91f790e81e042e183cfe
[media] pwc-if: must check vb2_queue_init() success

drivers/media/usb/pwc/pwc-if.c: In function 'usb_pwc_probe':
drivers/media/usb/pwc/pwc-if.c:1003:16: warning: ignoring return value of 'vb2_queue_init', declared with attribute warn_unused_result [-Wunused-result]
In the past, it used to have a logic there at queue init that would
BUG() on errors. This logic got removed. Drivers are now required
to explicitly handle the queue initialization errors, or very bad
things may happen.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/pwc/pwc-if.c