staging: line6: eliminate useless NULL checks
[deliverable/linux.git] / drivers / staging / line6 / toneport.c
index 879e6992bbc6f8976c8fbea0c450db15428dda8e..f31057830dbc37769fc70cb982076369d0462feb 100644 (file)
@@ -295,14 +295,10 @@ static struct snd_kcontrol_new toneport_control_source = {
 static void toneport_destruct(struct usb_interface *interface)
 {
        struct usb_line6_toneport *toneport = usb_get_intfdata(interface);
-       struct usb_line6 *line6;
 
        if (toneport == NULL)
                return;
-       line6 = &toneport->line6;
-       if (line6 == NULL)
-               return;
-       line6_cleanup_audio(line6);
+       line6_cleanup_audio(&toneport->line6);
 }
 
 /*
This page took 0.031949 seconds and 5 git commands to generate.