mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
scsi: bfa: Remove redundant NULL check
Fix the following warning reported by coccicheck: drivers/scsi/bfa/bfad_debugfs.c:375:2-7: WARNING: NULL check before some freeing functions is not needed. Link: https://lore.kernel.org/r/1647309434-13936-1-git-send-email-baihaowen@meizu.com Signed-off-by: Haowen Bai <baihaowen@meizu.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
1dcd96c4d0
commit
8e897c8466
1 changed files with 1 additions and 2 deletions
|
@ -371,8 +371,7 @@ bfad_debugfs_release_fwtrc(struct inode *inode, struct file *file)
|
|||
if (!fw_debug)
|
||||
return 0;
|
||||
|
||||
if (fw_debug->debug_buffer)
|
||||
vfree(fw_debug->debug_buffer);
|
||||
vfree(fw_debug->debug_buffer);
|
||||
|
||||
file->private_data = NULL;
|
||||
kfree(fw_debug);
|
||||
|
|
Loading…
Add table
Reference in a new issue