Commit ee51f4432e375d07c29758e592c8c1ad1a343208

Authored by Jesper Juhl
Committed by Jiri Kosina
1 parent 53c0ad522e

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>

Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff

drivers/scsi/aic94xx/aic94xx_seq.c
... ... @@ -1228,8 +1228,7 @@
1228 1228  
1229 1229 int asd_release_firmware(void)
1230 1230 {
1231   - if (sequencer_fw)
1232   - release_firmware(sequencer_fw);
  1231 + release_firmware(sequencer_fw);
1233 1232 return 0;
1234 1233 }
1235 1234