diff options
| author | 2020-04-03 17:47:11 +0100 | |
|---|---|---|
| committer | 2020-04-24 12:48:48 -0400 | |
| commit | d1ec20a55f6c8ce485fd298a015ec83d7e5326d8 (patch) | |
| tree | bd22fe58b78b6d6a96a7bdbca11e36e64ec9003e /tools/perf/scripts/python | |
| parent | scsi: aic7xxx: Use kzalloc() instead of kmalloc()+memset() (diff) | |
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
