]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: hisi_sas: No need to check return value of debugfs_create functions
authorJohn Garry <john.garry@huawei.com>
Fri, 25 Jan 2019 14:22:27 +0000 (22:22 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 29 Jan 2019 06:41:19 +0000 (01:41 -0500)
commit4c826b0f36331ffd8f6f4cc2c5523b09b2e5c67f
tree68219c721eb3f700f0bbc191d43fd7036cef5871
parent4792b286d35f28a4b7ea0ae568cc06c7aed39d89
scsi: hisi_sas: No need to check return value of debugfs_create functions

When calling debugfs functions, there is no need to ever check the return
value. The function can work or not, but the code logic should never do
something different based on this.

Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/hisi_sas/hisi_sas.h
drivers/scsi/hisi_sas/hisi_sas_main.c