Commit 35ae48a3 authored by Chris Rorvick's avatar Chris Rorvick Committed by Takashi Iwai

ALSA: line6: Remove superfluous NULL checks

Signed-off-by: default avatarChris Rorvick <chris@rorvick.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 4d79fb1e
...@@ -456,21 +456,11 @@ int line6_probe(struct usb_interface *interface, ...@@ -456,21 +456,11 @@ int line6_probe(struct usb_interface *interface,
const struct line6_properties *properties, const struct line6_properties *properties,
int (*private_init)(struct usb_interface *, struct usb_line6 *)) int (*private_init)(struct usb_interface *, struct usb_line6 *))
{ {
struct usb_device *usbdev; struct usb_device *usbdev = interface_to_usbdev(interface);
struct snd_card *card; struct snd_card *card;
int interface_number; int interface_number;
int ret; int ret;
if (!interface) {
ret = -ENODEV;
goto err_put;
}
usbdev = interface_to_usbdev(interface);
if (!usbdev) {
ret = -ENODEV;
goto err_put;
}
/* we don't handle multiple configurations */ /* we don't handle multiple configurations */
if (usbdev->descriptor.bNumConfigurations != 1) { if (usbdev->descriptor.bNumConfigurations != 1) {
ret = -ENODEV; ret = -ENODEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment