aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/media/zc0301.h
diff options
context:
space:
mode:
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 {
134struct zc0301_device* 134struct zc0301_device*
135zc0301_match_id(struct zc0301_device* cam, const struct usb_device_id *id) 135zc0301_match_id(struct zc0301_device* cam, const struct usb_device_id *id)
136{ 136{
137 if (usb_match_id(usb_ifnum_to_if(cam->usbdev, 0), id)) 137 return usb_match_id(usb_ifnum_to_if(cam->usbdev, 0), id) ? cam : NULL;
138 return cam;
139
140 return NULL;
141} 138}
142 139
143void 140void