Message ID | 20230713091452.3997-1-machel@vivo.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-block-owner@vger.kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62B46EB64DD for <linux-block@archiver.kernel.org>; Thu, 13 Jul 2023 09:16:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233978AbjGMJQd (ORCPT <rfc822;linux-block@archiver.kernel.org>); Thu, 13 Jul 2023 05:16:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233050AbjGMJQb (ORCPT <rfc822;linux-block@vger.kernel.org>); Thu, 13 Jul 2023 05:16:31 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2093.outbound.protection.outlook.com [40.107.215.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAD311FF7; Thu, 13 Jul 2023 02:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mRreXphAdyN5tJ0V7gkic0Ppuo/qzRkXaiJ2lwVFUGjW2xUREQIOCrcrvtMDYZ3SAUxzg2+EyEPguhUXoMglhv/N/eyYXdd/pKpYIPF6n1FgNPERddcpHMF0kFJzRfdDOWoZCHTMWpXQG8HJOZLzDGFj7BJc6ARPwZMiFDY9Y2ROqWZAdOzXEw+cnJQ74X96GMYakoNMZ3M1G0Zx1Irj7nIU+HfIobuTjrSwCc/4gP+dMBswK8GJG/oBI9ggpWeKqDU6fJNzrgi3KcpOIIbUxpaYE6yrjHoIKKpSzPPlJOmN9YrmKT23J3k/DrSewaqNf0mu8Fpxvs9aU+EGIgUJIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=AfYpq+IE4hFbCk72pVldbrrIxv1BugRqam0dFq+0RdM=; b=dGE4ZQp8Z5a8A3uBbXI3yEBnbzcILbp7HSd+H0QRxdTdA1yMLXFXzC4eAO8hGuWjSQ8ycJEODggb8YjAPD378VvfrpZghSGAWFTknX2/BJ7Jk5NEfO0CaTq1149dmONoF3CtqjFJAJFGPOQTG5jFVOMpCwlpAkRcNt/jlZ41taBTc7Vup+ZguDp7UxhugjHD3IEhU6JWBH/9bPgxMGqkPv3XBVLTzw77fqenDEiXyc72GkBCq7kaTLdViriqkYbCZ3CUphs3hoE0KXcP7AUJdNOkglCAwQ/6ahoFKf6ahlDVn2/v5LkgOVPzK/m0Sz7wapn+NBEfv8XEBx/KqZfCbw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AfYpq+IE4hFbCk72pVldbrrIxv1BugRqam0dFq+0RdM=; b=F5l2MvsVQG2PeIfPPFAaIKd5sWCG8Bg3ofoSYAe5YvM2oY/qb03Xq9dp62PekKjad1rb6GGa6EwOshh0cEAF85wWJiEIxyw9A2X+Burc3nCy0YIRszDrTOBKFCk6oz3tcV53F7RKtaI79BIJmi/U5G9irxrF0eSG03zvXhtTCE5nW7JxXbR5pZ2YEwojklw4GkJUyijnPR2PatB6K84OmyXBxnDXwncp8JJoqvMa4q6MRXflExuKzeSUEb9VQ1pa0/7+sdXn5NSTHnBNfMhTCbKTUlgNGRWJC3HmywwU99XuDutcSk+IzWgpoYtQ/cegdFFRsA7mFwK0kGAbuJJcmw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SG2PR06MB3743.apcprd06.prod.outlook.com (2603:1096:4:d0::18) by TY0PR06MB5612.apcprd06.prod.outlook.com (2603:1096:400:31f::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Thu, 13 Jul 2023 09:16:17 +0000 Received: from SG2PR06MB3743.apcprd06.prod.outlook.com ([fe80::2a86:a42:b60a:470c]) by SG2PR06MB3743.apcprd06.prod.outlook.com ([fe80::2a86:a42:b60a:470c%4]) with mapi id 15.20.6588.024; Thu, 13 Jul 2023 09:16:16 +0000 From: Wang Ming <machel@vivo.com> To: linux-block@vger.kernel.org, Jens Axboe <axboe@kernel.dk>, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com, gregkh@linuxfoundation.org, Wang Ming <machel@vivo.com> Subject: [PATCH v1] block: Remove error checking for debugfs_create_dir() Date: Thu, 13 Jul 2023 17:14:39 +0800 Message-Id: <20230713091452.3997-1-machel@vivo.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR04CA0191.apcprd04.prod.outlook.com (2603:1096:4:14::29) To SG2PR06MB3743.apcprd06.prod.outlook.com (2603:1096:4:d0::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PR06MB3743:EE_|TY0PR06MB5612:EE_ X-MS-Office365-Filtering-Correlation-Id: 8ccfc38f-65e0-47f1-a4e9-08db8381cf44 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: txwyOIcr4GEqvWO5J86gtq7qT1pefJVEAHM4ocmRciKBHebgUJNoRBqFEVvfDboMa5lYth3Ii08NNrE8V7RGO2M+z8aqhtkzlwWuO78AspEJX/270FCYMThL6V7/0e6IoGQsammQp6XP0mXWO/PJASZNOFp7xhaatl5Dh1Ws/3ED7nPaKZEtHr8HAxU6DaMKaSvZkSkABwDY8kgbfimmiUcqyU9Sq0kGsYOXfmEqkFq3K+WIjJBRYVMYDaXO241AJQqvdD/fOYCSURhl1H6Vv2xfnAk6KLqH4Ahz7pU94p6xJV4PgYOUSlz7OZ1Q3sS2zHr7NT2FISn1+4YF3nxpV3VUlTBdDHCSVtCVRe3WwCOadiUTyXle6A7Tw4ZIUPgZOWrr0I5BUiirpRbJ6uci1JvpwBRLu0BUi8UyiIjGRmIqk4j/Cmu6bKeJ6t5dTQdCDsChDf3NHyqMwHkHSqaBet97SPMBrO10UFaB5XO4Km4PW3V5AiPFvG9zOZdYw0kYQ7+QxPLUeMDxCGe9Q/phnCyB0fxLuhk1oMnVujVN7BsuilGRxLJNSMS7SIG5O0MGsv/FlnKF1BAPDy7m8rCfJsYFS5mrc3zXvaxdA7Il47hVd+0WeSqA5hBIxfH39ZU3 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SG2PR06MB3743.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39860400002)(346002)(136003)(376002)(366004)(396003)(451199021)(186003)(1076003)(26005)(2616005)(6512007)(2906002)(478600001)(107886003)(83380400001)(4744005)(4326008)(41300700001)(66556008)(66476007)(5660300002)(316002)(8676002)(8936002)(66946007)(6486002)(52116002)(6666004)(36756003)(6506007)(38350700002)(86362001)(38100700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: g4xL1ED7w8axDigEnmxbP2Gy5wJHzkyhW/QnI3k4gUbQvG5sdczsOVfRSJGpQmjymD5TRbc8t8EYjHlAApJlChn3c9ixWike19a/59LrIVsF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/ITTaaQi6zCCwcu1UiGa5b6le8xDVuj1HwV9HuV3+lPNHp9JTarh/NYT0zE4sf5WmbPEGB+PpF+4bXwh4Sxcw4ZVdFZ+YmG66Q9zoBUs3gIBX2hqLMDe6q21/gSFLirrjl6f4VbjoLohM9f3w1PLZSLaG0+erqXOwPrFQzmvhAVUTytrBPpBnZHtnL9gYktV2VjZhnhxVp0X1OIQaQ64Lzq0YGqXY8YL5CeWEkQR5bA5wNDwY8iPut6qZm01ELxMAgxSehfeZvaAWUPP4Fr/gJctNs69ujYuA5XXiL+CLCSl0cFLQXX9c/86gNPkYhveQBoEtJbGDWjK+ilY3Cpo+GHCUgaiUMbTTe+CDCh8vQtlFDMkF2fACRcmvyKhm5s+LkRLpSUEulfHbcgt987 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8ccfc38f-65e0-47f1-a4e9-08db8381cf44 X-MS-Exchange-CrossTenant-AuthSource: SG2PR06MB3743.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2023 09:16:15.7754 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 08CPA6n7oTIo58d46yGdleKHX+x2bYXWmAxdY2m3KKuMskNCv4JRq/P5O9CoszKL4AOK0cr2mLW6e8eMFPu1Eg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5612 Precedence: bulk List-ID: <linux-block.vger.kernel.org> X-Mailing-List: linux-block@vger.kernel.org |
Series |
[v1] block: Remove error checking for debugfs_create_dir()
|
expand
|
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index a1428538bda5..1d07208faeeb 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c @@ -497,8 +497,6 @@ static void pkt_debugfs_dev_new(struct pktcdvd_device *pd) if (!pkt_debugfs_root) return; pd->dfs_d_root = debugfs_create_dir(pd->disk->disk_name, pkt_debugfs_root); - if (!pd->dfs_d_root) - return; pd->dfs_f_info = debugfs_create_file("info", 0444, pd->dfs_d_root, pd, &pkt_seq_fops);
It is expected that most callers should _ignore_ the errors return by debugfs_create_dir() in pkt_debugfs_dev_new(). Signed-off-by: Wang Ming <machel@vivo.com> --- drivers/block/pktcdvd.c | 2 -- 1 file changed, 2 deletions(-)