From patchwork Tue Jan 22 15:08:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 10775649 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 679181399 for ; Tue, 22 Jan 2019 15:09:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 578742A032 for ; Tue, 22 Jan 2019 15:09:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4904A2A060; Tue, 22 Jan 2019 15:09:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E501B2A032 for ; Tue, 22 Jan 2019 15:09:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728934AbfAVPJN (ORCPT ); Tue, 22 Jan 2019 10:09:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:48398 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728687AbfAVPJM (ORCPT ); Tue, 22 Jan 2019 10:09:12 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AB38320879; Tue, 22 Jan 2019 15:09:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548169752; bh=6H2+DNncCpk2y88T7iRTCBhL9SBS8giDaQDz10mmGoc=; h=From:To:Cc:Subject:Date:From; b=LTcdv2bOhvh89n0Aeh4I4WAFYAhix7KP6HHEbmYDOkLTX2JezmR0sqIoJEPezwP9h WJp5McgbUZqJ/8xvjcekvfxopINp5RnmprdaD5EKk8tIoER+9wEJqJBLvpqDMWOlE8 Sa8lbxDz1WTxuzp3e0N2Yz1ryDsGkaumdu8Jpc/I= From: Greg Kroah-Hartman To: James Bottomley , Martin Petersen Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Greg Kroah-Hartman Subject: [PATCH 0/7] SCSI: cleanup debugfs usage Date: Tue, 22 Jan 2019 16:08:59 +0100 Message-Id: <20190122150906.12470-1-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When calling debugfs code, there is no need to ever check the return value of the call, as no logic should ever change if a call works properly or not. Fix up a bunch of x86-specific code to not care about the results of debugfs. Greg Kroah-Hartman (7): scsi: bfa: no need to check return value of debugfs_create functions scsi: csiostor: no need to check return value of debugfs_create functions scsi: fnic: no need to check return value of debugfs_create functions scsi: snic: no need to check return value of debugfs_create functions scsi: lpfc: no need to check return value of debugfs_create functions scsi: qlogic: no need to check return value of debugfs_create functions scsi: qla2xxx: no need to check return value of debugfs_create functions drivers/scsi/bfa/bfad_debugfs.c | 17 --- drivers/scsi/csiostor/csio_init.c | 6 +- drivers/scsi/fnic/fnic_debugfs.c | 88 +--------------- drivers/scsi/fnic/fnic_main.c | 7 +- drivers/scsi/fnic/fnic_stats.h | 2 +- drivers/scsi/fnic/fnic_trace.c | 17 +-- drivers/scsi/fnic/fnic_trace.h | 4 +- drivers/scsi/lpfc/lpfc_debugfs.c | 170 ------------------------------ drivers/scsi/qedf/qedf_debugfs.c | 18 +--- drivers/scsi/qedi/qedi_debugfs.c | 17 +-- drivers/scsi/qla2xxx/qla_dfs.c | 43 +------- drivers/scsi/snic/snic_debugfs.c | 133 +++++------------------ drivers/scsi/snic/snic_main.c | 14 +-- drivers/scsi/snic/snic_stats.h | 2 +- drivers/scsi/snic/snic_trc.c | 12 +-- drivers/scsi/snic/snic_trc.h | 4 +- 16 files changed, 48 insertions(+), 506 deletions(-)