Skip to content

Commit

Permalink
aic94xx: Get rid of redundant NULL check before release_firmware() call
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesper Juhl authored and Jiri Kosina committed Apr 30, 2012
1 parent 53c0ad5 commit ee51f44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/scsi/aic94xx/aic94xx_seq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ee51f44

Please sign in to comment.