scsi: aic7xxx: Remove unnecessary NULL checks before kfree
authorAlex Dewar <alex.dewar@gmx.co.uk>
Fri, 3 Apr 2020 16:47:11 +0000 (17:47 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 24 Apr 2020 16:48:48 +0000 (12:48 -0400)
commitd1ec20a55f6c8ce485fd298a015ec83d7e5326d8
treebd22fe58b78b6d6a96a7bdbca11e36e64ec9003e
parent9cd7d494bd2b1fb53884a797b460b4f1741b82cc
scsi: aic7xxx: Remove unnecessary NULL checks before kfree

There are a number of places in the aic7xxx driver where a NULL check is
performed before a kfree(). However, kfree() already performs NULL checks
so this is unnecessary. Remove the checks.

Issue identified with Coccinelle.

Link: https://lore.kernel.org/r/20200403164712.49579-1-alex.dewar@gmx.co.uk
Signed-off-by: Alex Dewar <alex.dewar@gmx.co.uk>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aic7xxx/aic79xx_core.c
drivers/scsi/aic7xxx/aic7xxx_core.c