]> 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)
commit66d82afeebfdd49dc0583b60dc50218e67191547
tree68219c721eb3f700f0bbc191d43fd7036cef5871
parentd401061889575123f4ebbaf6f4da925567d433ca
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