OSDN Git Service

scsi: fnic: Fix coccinelle warnings
authorVasyl Gomonovych <gomonovych@gmail.com>
Tue, 21 Nov 2017 21:15:46 +0000 (22:15 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 5 Dec 2017 03:56:00 +0000 (22:56 -0500)
commitd9462140f7ab0400206041d2732c740dea2d1ff9
tree4480152364c7c714457a911b516a120f509cecbd
parent9c0a50022b8ac7e863e6ec8342fa476fe5d1d75c
scsi: fnic: Fix coccinelle warnings

Remove the duplicate copies of this simple function and use an
open-coded version.

drivers/scsi/fnic/fnic_debugfs.c:122:11-31: WARNING opportunity for simple_open, see also structure on line 223

Generated by: coccinelle/api/simple_open.cocci

Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fnic/fnic_debugfs.c