V4L/DVB (10463): radio-mr800: fix checking of retval after usb_bulk_msg
authorAlexey Klimov <klimov.linux@gmail.com>
Thu, 5 Feb 2009 12:00:03 +0000 (09:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:42:40 +0000 (12:42 -0300)
commite57458dc7086bac9e05b6fc6d5ab336de1647c12
tree2517fe5d8f2662e2585e5752f42958d10778ee2b
parent71f07d94ce26f80381acf90cc222eb683ffcc8f3
V4L/DVB (10463): radio-mr800: fix checking of retval after usb_bulk_msg

Patch corrects checking of returned value after usb_bulk_msg. Now we
also check if number of transferred bytes equals to BUFFER_LENGTH.

Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/radio/radio-mr800.c