diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-20 08:42:42 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-28 07:19:37 +0100 |
commit | 8a3b7c086a509d90c312ebab6d8e5a9bf48c6cf5 (patch) | |
tree | 89c8dd81edfc0148e3c5a5a54aa93892739e58db /sound/usb/line6/variax.c | |
parent | 2a324fcdb568f4d7b0b65b271039beb987f6e1cd (diff) | |
download | talos-obmc-linux-8a3b7c086a509d90c312ebab6d8e5a9bf48c6cf5.tar.gz talos-obmc-linux-8a3b7c086a509d90c312ebab6d8e5a9bf48c6cf5.zip |
ALSA: line6: Remove superfluous NULL checks in each driver
The interface and driver objects are always set when callbacks are
called. Drop such superfluous NULL checks in init and disconnect
calls of each driver.
Tested-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/line6/variax.c')
-rw-r--r-- | sound/usb/line6/variax.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sound/usb/line6/variax.c b/sound/usb/line6/variax.c index 99a58cbfd2da..cd3adeffde02 100644 --- a/sound/usb/line6/variax.c +++ b/sound/usb/line6/variax.c @@ -214,12 +214,7 @@ static void line6_variax_disconnect(struct usb_interface *interface) { struct usb_line6_variax *variax; - if (!interface) - return; - variax = usb_get_intfdata(interface); - if (!variax) - return; del_timer(&variax->startup_timer1); del_timer(&variax->startup_timer2); @@ -244,9 +239,6 @@ static int variax_init(struct usb_interface *interface, init_timer(&variax->startup_timer2); INIT_WORK(&variax->startup_work, variax_startup6); - if ((interface == NULL) || (variax == NULL)) - return -ENODEV; - /* initialize USB buffers: */ variax->buffer_activate = kmemdup(variax_activate, sizeof(variax_activate), GFP_KERNEL); |