]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit94b66cf49f8e68dda51c89a853dd4eb91ed56680
treebd22fe58b78b6d6a96a7bdbca11e36e64ec9003e
parent5d1c072bd9b645c28e473dd758e2cd34ae14558f
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