Commit a6c8ef95 authored by Jesper Juhl's avatar Jesper Juhl Committed by Greg Kroah-Hartman
Browse files

staging: vt6656: Don't needlessly test for NULL before release_firmware()



Checking for a NULL pointer before calling release_firmware() is
redundant since the function does that check itself.

Signed-off-by: default avatarJesper Juhl <jj@chaosbits.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 234bb3c6
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1257,8 +1257,6 @@ static void __devexit vt6656_disconnect(struct usb_interface *intf)
	}

	device_release_WPADEV(device);

	if (device->firmware)
	release_firmware(device->firmware);

	usb_set_intfdata(intf, NULL);