summaryrefslogtreecommitdiffstats
path: root/drivers/usb/media/zc0301.h
diff options
context:
space:
mode:
authorLuca Risolia <luca.risolia@studio.unibo.it>2006-03-03 09:58:39 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2006-03-20 14:50:01 -0800
commit6e0755a4b2a41a8cd5839db69532d07262294b41 (patch)
treee180c082ba1b05f525a90ee6f1ea51543f710a5d /drivers/usb/media/zc0301.h
parent2e56222ed52cec40427fa89f23b228232e3e327e (diff)
downloadblackbird-op-linux-6e0755a4b2a41a8cd5839db69532d07262294b41.tar.gz
blackbird-op-linux-6e0755a4b2a41a8cd5839db69532d07262294b41.zip
[PATCH] USB: ZC0301 driver bugfix
ZC0301 driver bugfix. Use correct PID/VID USB entries. Signed-off-by: Luca Risolia <luca.risolia@studio.unibo.it> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/media/zc0301.h')
-rw-r--r--drivers/usb/media/zc0301.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/media/zc0301.h b/drivers/usb/media/zc0301.h
index 9ba9135e824b..8e0655140e60 100644
--- a/drivers/usb/media/zc0301.h
+++ b/drivers/usb/media/zc0301.h
@@ -134,10 +134,7 @@ struct zc0301_device {
struct zc0301_device*
zc0301_match_id(struct zc0301_device* cam, const struct usb_device_id *id)
{
- if (usb_match_id(usb_ifnum_to_if(cam->usbdev, 0), id))
- return cam;
-
- return NULL;
+ return usb_match_id(usb_ifnum_to_if(cam->usbdev, 0), id) ? cam : NULL;
}
void
OpenPOWER on IntegriCloud