diff mbox

V4L/DVB: opera1: remove unneeded NULL check

Message ID 20100819094750.GM645@bicker (mailing list archive)
State Accepted
Headers show

Commit Message

Dan Carpenter Aug. 19, 2010, 9:47 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/media/dvb/dvb-usb/opera1.c b/drivers/media/dvb/dvb-usb/opera1.c
index 6b22ec6..f896337 100644
--- a/drivers/media/dvb/dvb-usb/opera1.c
+++ b/drivers/media/dvb/dvb-usb/opera1.c
@@ -483,9 +483,7 @@  static int opera1_xilinx_load_firmware(struct usb_device *dev,
 		}
 	}
 	kfree(p);
-	if (fw) {
-		release_firmware(fw);
-	}
+	release_firmware(fw);
 	return ret;
 }