From: Jesper Juhl Date: Mon, 9 Apr 2012 20:51:58 +0000 (+0200) Subject: staging: vt6656: Don't needlessly test for NULL before release_firmware() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a6c8ef9526f149ce884b36841cc2e17ca890f1a4;p=linux-beck.git 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: Jesper Juhl Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6656/main_usb.c b/drivers/staging/vt6656/main_usb.c index 763e028a5cc5..ee5261a36886 100644 --- a/drivers/staging/vt6656/main_usb.c +++ b/drivers/staging/vt6656/main_usb.c @@ -1257,9 +1257,7 @@ static void __devexit vt6656_disconnect(struct usb_interface *intf) } device_release_WPADEV(device); - - if (device->firmware) - release_firmware(device->firmware); + release_firmware(device->firmware); usb_set_intfdata(intf, NULL); usb_put_dev(interface_to_usbdev(intf));