From patchwork Tue Jan 22 15:14:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 10775683 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 248C91399 for ; Tue, 22 Jan 2019 15:14:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1323F26242 for ; Tue, 22 Jan 2019 15:14:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 068E128E12; Tue, 22 Jan 2019 15:14:30 +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 A31D226242 for ; Tue, 22 Jan 2019 15:14:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728977AbfAVPO2 (ORCPT ); Tue, 22 Jan 2019 10:14:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:53916 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728899AbfAVPO2 (ORCPT ); Tue, 22 Jan 2019 10:14:28 -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 5FDFF20879; Tue, 22 Jan 2019 15:14:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548170067; bh=WBbVCM37JzleLtnPhzTgebvOSvH57a54qOBSUfe5kuM=; h=From:To:Cc:Subject:Date:From; b=LM9SBnHOuwCjsqXunZwSZfVfPKoCYboNBArakzhvLX0RdZ415XVlQzJ3J9MzlGASZ r2YS7RqcZy0mgpxIRssW2+520tiL6cMr6wpkOUb8CcKRh8egjmxTX45b4AFTNcIDHe qAWPR5Mw7JLBEqbQdhXzqxzMt6qgOtBxU1FUsp6U= From: Greg Kroah-Hartman To: Herbert Xu , David Miller Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, Greg Kroah-Hartman Subject: [PATCH 0/7] crypto: cleanup debugfs usage Date: Tue, 22 Jan 2019 16:14:15 +0100 Message-Id: <20190122151422.14204-1-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@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 crypto-specific code to not care about the results of debugfs. Greg Kroah-Hartman (7): crypto: qat: no need to check return value of debugfs_create functions crypto: ccrree: no need to check return value of debugfs_create functions crypto: axis: no need to check return value of debugfs_create functions crypto: cavium: zip: no need to check return value of debugfs_create functions crypto: cavium: nitrox: no need to check return value of debugfs_create functions crypto: ccp: no need to check return value of debugfs_create functions crypto: caam: no need to check return value of debugfs_create functions drivers/crypto/axis/artpec6_crypto.c | 9 ---- drivers/crypto/caam/ctrl.c | 21 +++----- drivers/crypto/caam/intern.h | 1 - drivers/crypto/cavium/nitrox/nitrox_debugfs.c | 27 ++-------- drivers/crypto/cavium/nitrox/nitrox_debugfs.h | 5 +- drivers/crypto/cavium/nitrox/nitrox_main.c | 4 +- drivers/crypto/cavium/zip/zip_main.c | 52 ++++--------------- drivers/crypto/ccp/ccp-debugfs.c | 36 +++---------- drivers/crypto/ccree/cc_debugfs.c | 22 ++------ drivers/crypto/ccree/cc_debugfs.h | 8 +-- drivers/crypto/ccree/cc_driver.c | 7 +-- drivers/crypto/qat/qat_c3xxx/adf_drv.c | 5 -- drivers/crypto/qat/qat_c3xxxvf/adf_drv.c | 5 -- drivers/crypto/qat/qat_c62x/adf_drv.c | 5 -- drivers/crypto/qat/qat_c62xvf/adf_drv.c | 5 -- drivers/crypto/qat/qat_common/adf_cfg.c | 7 --- drivers/crypto/qat/qat_common/adf_transport.c | 6 --- .../qat/qat_common/adf_transport_debug.c | 15 ------ drivers/crypto/qat/qat_dh895xcc/adf_drv.c | 5 -- drivers/crypto/qat/qat_dh895xccvf/adf_drv.c | 5 -- 20 files changed, 38 insertions(+), 212 deletions(-)