diff options
Diffstat (limited to 'drivers/usb/media/zc0301.h')
-rw-r--r-- | drivers/usb/media/zc0301.h | 5 |
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 { | |||
134 | struct zc0301_device* | 134 | struct zc0301_device* |
135 | zc0301_match_id(struct zc0301_device* cam, const struct usb_device_id *id) | 135 | zc0301_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 | ||
143 | void | 140 | void |