From: Jesper Juhl Date: Mon, 9 Apr 2012 20:51:30 +0000 (+0200) Subject: aic94xx: Get rid of redundant NULL check before release_firmware() call X-Git-Tag: v3.5-rc1~137^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee51f4432e375d07c29758e592c8c1ad1a343208;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git 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 Signed-off-by: Jiri Kosina --- 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; }