mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-12 10:46:47 +07:00
ALSA: line6: Yet more cleanup of superfluous NULL checks
... in line6_disconnect() as well. Tested-by: Chris Rorvick <chris@rorvick.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
c078a4aac2
commit
270fd9c7f9
@ -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;
|
||||
struct usb_line6 *line6 = usb_get_intfdata(interface);
|
||||
struct usb_device *usbdev = interface_to_usbdev(interface);
|
||||
|
||||
if (interface == NULL)
|
||||
return;
|
||||
usbdev = interface_to_usbdev(interface);
|
||||
if (usbdev == NULL)
|
||||
return;
|
||||
|
||||
interface_number = interface->cur_altsetting->desc.bInterfaceNumber;
|
||||
line6 = usb_get_intfdata(interface);
|
||||
if (!line6)
|
||||
return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user