Skip to content

Commit

Permalink
ALSA: line6: Yet more cleanup of superfluous NULL checks
Browse files Browse the repository at this point in the history
... in line6_disconnect() as well.

Tested-by: Chris Rorvick <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Jan 28, 2015
1 parent c078a4a commit 270fd9c
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions sound/usb/line6/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,18 +579,9 @@ EXPORT_SYMBOL_GPL(line6_probe);
*/
void line6_disconnect(struct usb_interface *interface)
{
struct usb_line6 *line6;
struct usb_device *usbdev;
int interface_number;

if (interface == NULL)
return;
usbdev = interface_to_usbdev(interface);
if (usbdev == NULL)
return;
struct usb_line6 *line6 = usb_get_intfdata(interface);
struct usb_device *usbdev = interface_to_usbdev(interface);

interface_number = interface->cur_altsetting->desc.bInterfaceNumber;
line6 = usb_get_intfdata(interface);
if (!line6)
return;

Expand Down

0 comments on commit 270fd9c

Please sign in to comment.