summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2012-04-09 22:51:30 +0200
committerJiri Kosina <jkosina@suse.cz>2012-04-30 13:22:58 +0200
commitee51f4432e375d07c29758e592c8c1ad1a343208 (patch)
treeb92887aaa7e8e88702e3edec2d9997b816efdf8a
parent53c0ad522e215251f55623e80b921129aafa0d48 (diff)
downloadop-kernel-dev-ee51f4432e375d07c29758e592c8c1ad1a343208.zip
op-kernel-dev-ee51f4432e375d07c29758e592c8c1ad1a343208.tar.gz
aic94xx: Get rid of redundant NULL check before release_firmware() call
release_firmware() checks for NULL pointers internally, so checking before calling the function is redundant. Signed-off-by: Jesper Juhl <jj@chaosbits.net> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--drivers/scsi/aic94xx/aic94xx_seq.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/aic94xx/aic94xx_seq.c b/drivers/scsi/aic94xx/aic94xx_seq.c
index 390168f..5fdca93 100644
--- a/drivers/scsi/aic94xx/aic94xx_seq.c
+++ b/drivers/scsi/aic94xx/aic94xx_seq.c
@@ -1228,8 +1228,7 @@ static int asd_seq_start_lseq(struct asd_ha_struct *asd_ha, int lseq)
int asd_release_firmware(void)
{
- if (sequencer_fw)
- release_firmware(sequencer_fw);
+ release_firmware(sequencer_fw);
return 0;
}
OpenPOWER on IntegriCloud