[PATCH] [SCSI] fnic: Fix coccinelle warnings

2017-11-21 Thread Vasyl Gomonovych
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 <gomo

[PATCH] scsi: lpfc: fix kzalloc-simple.cocci warnings

2017-10-11 Thread Vasyl Gomonovych
llowed by memset with 0 Generated by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci Signed-off-by: Vasyl Gomonovych <gomonov...@gmail.com> --- drivers/scsi/lpfc/lpfc_debugfs.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/scsi/lpfc/lpfc_debugfs