ALSA: line6: Remove superfluous NULL checks

Signed-off-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Chris Rorvick 2015-01-20 02:20:48 -06:00 committed by Takashi Iwai
parent 4d79fb1ed2
commit 35ae48a3f4
1 changed files with 1 additions and 11 deletions

View File

@ -456,21 +456,11 @@ int line6_probe(struct usb_interface *interface,
const struct line6_properties *properties,
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;
int interface_number;
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 */
if (usbdev->descriptor.bNumConfigurations != 1) {
ret = -ENODEV;