aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorChris Rorvick2015-01-20 02:20:48 -0600
committerTakashi Iwai2015-01-20 09:52:20 +0100
commit35ae48a3f40cff8a418b4f2061de3e2bc432e663 (patch)
tree9387d246ca270ef1786c52855563f8f21d20ac81 /sound
parent4d79fb1ed2487f204a185b59895e9a92ac4b475a (diff)
ALSA: line6: Remove superfluous NULL checks
Signed-off-by: Chris Rorvick <chris@rorvick.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/usb/line6/driver.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/usb/line6/driver.c b/sound/usb/line6/driver.c
index a3da18b876d1..3757b0c03054 100644
--- a/sound/usb/line6/driver.c
+++ b/sound/usb/line6/driver.c
@@ -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;