staging: line6: eliminate useless NULL checks
[deliverable/linux.git] / drivers / staging / line6 / podhd.c
index 6c0f7f21c2481f8861daf5948e95f78cccf2abcc..7ef45437b4f2392726ea7c7493495c049ce170f8 100644 (file)
@@ -80,14 +80,10 @@ static struct line6_pcm_properties podhd_pcm_properties = {
 static void podhd_destruct(struct usb_interface *interface)
 {
        struct usb_line6_podhd *podhd = usb_get_intfdata(interface);
-       struct usb_line6 *line6;
 
        if (podhd == NULL)
                return;
-       line6 = &podhd->line6;
-       if (line6 == NULL)
-               return;
-       line6_cleanup_audio(line6);
+       line6_cleanup_audio(&podhd->line6);
 }
 
 /*
This page took 0.026645 seconds and 5 git commands to generate.