Messages in this thread Patch in this message | | | Date | Mon, 9 Apr 2012 22:51:30 +0200 (CEST) | From | Jesper Juhl <> | Subject | [PATCH 17/26] [SCSI] 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> --- drivers/scsi/aic94xx/aic94xx_seq.c | 3 +-- 1 file changed, 1 insertion(+), 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; } -- 1.7.10
-- Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/ Don't top-post http://www.catb.org/jargon/html/T/top-post.html Plain text mails only, please.
| |