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/podhd.c | |
parent | 2a324fcdb568f4d7b0b65b271039beb987f6e1cd (diff) | |
download | linux-stable-8a3b7c086a509d90c312ebab6d8e5a9bf48c6cf5.tar.gz linux-stable-8a3b7c086a509d90c312ebab6d8e5a9bf48c6cf5.tar.bz2 linux-stable-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/podhd.c')
-rw-r--r-- | sound/usb/line6/podhd.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/usb/line6/podhd.c b/sound/usb/line6/podhd.c index 7217fa7e5db1..59abbd92624e 100644 --- a/sound/usb/line6/podhd.c +++ b/sound/usb/line6/podhd.c @@ -90,12 +90,8 @@ static struct line6_pcm_properties podhd_pcm_properties = { static int podhd_init(struct usb_interface *interface, struct usb_line6 *line6) { - struct usb_line6_podhd *podhd = (struct usb_line6_podhd *) line6; int err; - if ((interface == NULL) || (podhd == NULL)) - return -ENODEV; - /* initialize MIDI subsystem: */ err = line6_init_midi(line6); if (err < 0) |