staging/easycap: don't mask return value of usb_control_msg() by 0xFF
authorTomas Winkler <tomas.winkler@intel.com>
Thu, 10 Feb 2011 12:55:23 +0000 (14:55 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Feb 2011 20:40:00 +0000 (12:40 -0800)
commitccb6d2e5dc37605503d0a3182dbb27981f90df94
treef46ff11af11b2bc4080e5bb204114e1163fcb128
parent72075789ea6eba8b67516c5fc7e5c12fa1dac1c3
staging/easycap: don't mask return value of usb_control_msg() by 0xFF

masking return value of usb_control_msg() will mask negative
error values into positive.

Cc: Mike Thomas <rmthomas@sciolus.org>
Reported-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/easycap/easycap_low.c