diff options
Diffstat (limited to 'drivers/media/video/et61x251/et61x251.h')
-rw-r--r-- | drivers/media/video/et61x251/et61x251.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/video/et61x251/et61x251.h b/drivers/media/video/et61x251/et61x251.h index 2e5ca4032489..262f98e12409 100644 --- a/drivers/media/video/et61x251/et61x251.h +++ b/drivers/media/video/et61x251/et61x251.h | |||
@@ -171,10 +171,7 @@ struct et61x251_device { | |||
171 | struct et61x251_device* | 171 | struct et61x251_device* |
172 | et61x251_match_id(struct et61x251_device* cam, const struct usb_device_id *id) | 172 | et61x251_match_id(struct et61x251_device* cam, const struct usb_device_id *id) |
173 | { | 173 | { |
174 | if (usb_match_id(usb_ifnum_to_if(cam->usbdev, 0), id)) | 174 | return usb_match_id(usb_ifnum_to_if(cam->usbdev, 0), id) ? cam : NULL; |
175 | return cam; | ||
176 | |||
177 | return NULL; | ||
178 | } | 175 | } |
179 | 176 | ||
180 | 177 | ||