Message ID | 20240827022741.3410294-1-11162571@vivo.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2065.outbound.protection.outlook.com [40.107.117.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 68A8316426; Tue, 27 Aug 2024 02:27:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.117.65 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724725679; cv=fail; b=szr715R1PFTNvNdNJB/XL/1QXeI5Y0bjTs5PRsFpAMkTRHfb/uqql9N0fbaRkMD461ySwje6smj7v2F4u8MGIyja2h9XwislrFV+Hh15TujKmg0bn8Nqp+8/6jJUxJkqSpc9eeHPccR50fP/q6YE0uyKv4DYVf8a/HdomMSihTw= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724725679; c=relaxed/simple; bh=i15ugCWVs9cPd6aJ33hZAy+fAvNa4jhqLbf+NF4CrUw=; h=From:To:Cc:Subject:Date:Message-Id:Content-Type:MIME-Version; b=mpWbxdPkhDmRHL95cOxWMHWfWfeoPO0avm03kuXzsMikvDi22OueEPUmrXrDp9gdxjXgkelDDM7ei6rYt7v3+WXHMAOEKwZHssPDMvp1tnIJNAWsq6Bo/RA99o+yxDJuBkmEaP9q3okFVcYxnqA/OjaBXzo+/L9pQ6nrc8QUzUM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com; spf=pass smtp.mailfrom=vivo.com; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b=ICrRVK2x; arc=fail smtp.client-ip=40.107.117.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=vivo.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=vivo.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=vivo.com header.i=@vivo.com header.b="ICrRVK2x" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IZsKEm8CpiIQnl/OMLAFrOkv9TrucQNKuY/RQwbgayrk5bNpdVIyDLJninOWbN2b99eTj/y4Cqy1SLb6cAhikZgtk1v9Xp6VxIfnTQS5k3lykTYjRH3xPtTgFjcYK1KdPnGeUBUJTqDmVBfrdnumBiqXbOOLbeRlF/gt82hxvryFEVaynncDvg7URxGnbIiXQre2eGQUCzEOsIphT9qY6dItmT45ORqdueWYPXRGilN1Lm4z3VDHMVoG6RN+1Ag42vSHqCcV+9yXSSuaO6gI9Hds77n4UjvxlA7mKw+WH2+AaGPXU91Khx5xc6GzWEUokENnpwVNRidaETwbZAvcvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=OpbzTc3Hv7PKQXmcrI4H16ZJaMQ282ztuqI4J9LoZ28=; b=Dg71lgklUJ3Bu90KXpAm8V5iulIQaQtB80njKXZNNQKYE2pRIV+oaWIWcYO1yaP4WRe4dvJGFpT/JAdx0R+tWy7l1X2OaYQfJPBCvmdOmgHNaBj1+XVLwex9IZe7Yp3ugZza5GP4oM6OWNUcdC6TedqaNgFe+uM6R4fHQw9TN3H/jem+5In6Ymjv7dHGCwfbP36PRts8y9XaDovzLeokgUvN+KLnaNsaMmW3RF6W8nmMr4bt82m4sZFd1XHGe1BpSOMOsYN0Xo+WDzAq6mfjuRNGdwSeQqapAhekZD4mljeicUgsLEkE6ojOzpyp/9PwxoGaCBqdT4Kuk3/qKbzXYg== 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=OpbzTc3Hv7PKQXmcrI4H16ZJaMQ282ztuqI4J9LoZ28=; b=ICrRVK2x1gs7U3nTfpE4vFvPg1J/nH4XKeurGAJzdmDxkIS4Un6REO+qpDWpub0BKRPF0ewqEtKj9wh/QuBTOOvCAv2Q5UuKzkkZfJrjzruRftni8HzzUabQuUGkrywSJhVL+0czTeDZZXwViM4AM+ztvlzu/xF5M5MXmbbJAxk2JJRcL9ZZ6AGP2+hZ1sH8tQe7s0ag73GBOvcO9cj7mHAQeP/8mTZJvR6Y7me3kYCYKFIDfO4KTLUcvXajLenmMlyp2hixu4Uc/ds3x82ARkbIaENO5TriMP0VXFGUfsHrZ96EfkrGOAqJT5ixjSOUfZvFAnSfMhY2S8Xd1ExqhA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from TYZPR06MB6263.apcprd06.prod.outlook.com (2603:1096:400:33d::14) by SEZPR06MB5879.apcprd06.prod.outlook.com (2603:1096:101:e4::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.25; Tue, 27 Aug 2024 02:27:50 +0000 Received: from TYZPR06MB6263.apcprd06.prod.outlook.com ([fe80::bd8:d8ed:8dd5:3268]) by TYZPR06MB6263.apcprd06.prod.outlook.com ([fe80::bd8:d8ed:8dd5:3268%6]) with mapi id 15.20.7897.021; Tue, 27 Aug 2024 02:27:50 +0000 From: Yang Ruibin <11162571@vivo.com> To: linux-block@vger.kernel.org, Jens Axboe <axboe@kernel.dk>, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com, Yang Ruibin <11162571@vivo.com> Subject: [PATCH v7] pktcdvd: Remove unnecessary debugfs_create_dir() error check in pkt_debugfs_dev_new() Date: Tue, 27 Aug 2024 10:27:40 +0800 Message-Id: <20240827022741.3410294-1-11162571@vivo.com> X-Mailer: git-send-email 2.34.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: TY2PR06CA0034.apcprd06.prod.outlook.com (2603:1096:404:2e::22) To TYZPR06MB6263.apcprd06.prod.outlook.com (2603:1096:400:33d::14) Precedence: bulk X-Mailing-List: linux-block@vger.kernel.org List-Id: <linux-block.vger.kernel.org> List-Subscribe: <mailto:linux-block+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-block+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR06MB6263:EE_|SEZPR06MB5879:EE_ X-MS-Office365-Filtering-Correlation-Id: 81a0d6fc-3c68-4f9c-9e35-08dcc63fd8c4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|52116014|376014|38350700014|81742002; X-Microsoft-Antispam-Message-Info: 8UXTHTnOWjKiRgCcXX+04T31Us6HRFsQ9yA/dETU7wvF1L4Qc8olmrOoNhLiMcTEmONYK2tEb6dzDryQCd12gmWjDGYXrMcVoOJSBVycF6+3yksr2F1EmnLPMLoQCa/2EfinCCThH93vt80coLfgMi9uYsfm0xkoIWb+hy5RLG55ElZF1eaX1t98zJbZ+ebmuZsvMAaot4qiGdyPQL6pH4nF8o15c3gZgxAQUovVEn32q7lYBVtPA/vnxsIYnkIZwntam+RccoW8yfU59nERNk0RpLz3JfuItcHiDGLGccCD7G/F98Hrnu1zr+IStArX3iuw+6uQrCsy1lf+r+bAexVcTnu2sgxki/Aq4Ysd32hGtKxLMMSkGIJPsNSqfWXkslAsSmfIJ6381Oma2+a61D0Vn3zdORv/4T5/BWUvBgBcWZ/RgOliRmesAkjOzIv/FEgsRLcBImBlHOhOHk/tG2J4c77v0L/9QmIQubGFNDnWT1um56tBeg1dZxLRFOFdibBnHRSpPQmLTRXiY/fhlEWDdJEzrnJvQYoJu00MoH0ClsB/dXKYOnGw8V6lKausRy7XD0h0NQM48suCXKHx/4GuikQM3zQSqkGT/G0rZOWSWisvrHyI7d6E2rvuUQ/rVqGWdMeZy5C22LGbWlALwrEDvVyWs/MR3BS02Hca6d5raSkYKmjxC40Lv/aTMdN2FCb4t03iETax+KY3EV3/GhXh413syJvxhsU5LITruD58LTWxUZ/lJbGirio05OBLlaraMiNinpz5P1NSwNPX0IfsXYjsAiLXnYkSTbxy54q7ySnifMdv12VaHJl2cH6QBmakseH/okp7JBNqOCRaE9hOx9lbNWbdNMEgj07GNANNTaWzx4CKG/RoQPdGePM55RvAnO+4qaX+tXUg5aExq1xk4SWow3yeX6upEclnSkUI5F7qp5qzalYozxqmC+s1waBUBLgu1k6Fhtt/hyrIRyi/97RPxh++3MJwwc9qjOcZl3Bk0dDBwtwfc6Fx59k5zISTaoZdZrh++3LktlLHVvcMcIdo4FIlVroSANN5i7Febqqsx7YC25vJZ5s7g97yy+tv29QBNdTC5fmtrAr+l6GSzqvfa1IAOcRdtcKQjaTWa4xTgeRBagdBsr/QHzawSHoruySKiQCyaQEikB+y2svoZyy1ChcA4RxUCGHa0PPEemq2ww4pONpYyqExvSyfwZoC4rmkQhyOPdmcFzjTZwpXtK2+EN+kl7bdsoVjeMEa2tqCMgYsjuTCVhStaMTjX6V+Y9aQu55JdDDqKwd5GR0fcbDA3c+//10C5lE5dzTlRuHxTcYMYPcKMwkiWFivK5om1yqPk7jTtGemxVfoqY2kRVh1BWbV6HtOgQECS4jkZbudIJEfw3BCJBwxOFGse+bI0ptbtbWIAf8813oYiDXn5K42ufy6mpQvQbUGlEc= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR06MB6263.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(52116014)(376014)(38350700014)(81742002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Hrxjs6fWUAs+G8JvB8PiZ4ggeesdpMYjFUCnUqcWaCyryVuZcsiK42rsvnsd/grew6BhtS6j0uTPmTB2jks2mNz4hrPqS+Nd8M9NM0KzA8ca3UUv/0wIXWndyHBbrpZA+CVADRu1mYqZ+lhvmp8wgt+lMbqUxkk0LB2mIoj79OE21WgATt6WQMUqoX9FOWCRwVyeeVqxAaTbUjBiQxLuB+06gq5mXIVrinP5SqBbJWjG2ECssZYuWiH2mI315j83FuDBR3JKZZnpkDr0Jj2LeIKj6hRx03IiyTJUiRW8l/NzttWrrJxbXWLVEW9/4rCw6Fy8Sgm6aBClqzU6jroX/WCmNev5sNDHGbFHxo8VtKlMYVgDpSouYFmZh27FhN6wUfSfLHVAS4g99RZRssfRjkQupfK959c3TauhZXhITwYVj1bdufmkt+tSMfj8N60wZJ15ZrX7e3LaUY7Ls10K685W5URCpwBidCqN22OqPwSWbyRnrI5TdW1FdP7zOhUgJ4i855N8SdoAMquamJ5mu+aLNKEaChTM0eaXOj0zCl45Ep34LW/gI98Q9BMaOp5hVvjgQQ7LBWvJnQt2GAcACqD+9mMZsV29A+e5mF47FDVF2vXFXAhUW4TjbFezSkkep37Wpb0ID/YaBD3YmrqWjuCHDC2h4Kg8WD5QjhbxMX8vUm8hgWHqTyhFt0UQvzYZGX3prIIP0rwxqy/NXlHX/Gcki1wjbFPH6pk696qXRQc408pZnnz8bwBmD+JIziZusRnJc1QDmfN6+oPdCfR0vjcGlEJ2q3Pf+FnrY3gpJkIY3q1/8946DPwr41bDXWRGlAvMrS+zABNfU6smn+RDlFh7rnXNsdyql3j02LAcVc2ityznd6p6yaYtMUuIHxe1S2DW4rTml31nvyfKbfGxhU+A4qJyoUox2lKkvjtlPsAX84rXKN0BrLVubewkMmysON5IvPg0Po9DLcHJyJWnQTzoyiZTPj5YvWb4ZzXuOyzt7O7/zipmzPWSCtypPs1KL/G7ZyG63cviuA1oVdSlEe80BmsM2XPNJAUQ3/GiS6BPPL6g/TzEBQMB91A2F7nnvKJ8A7FHAbIyrzKho8AZtjeD6hjXSu+pOCHp2Rr+pXnNwSD5rTuKjTvgPWjcQA2HeR3xduflOUrvsSdKt6hLEiLuF7dneaUcg4vKMPU4LbQI78seUKaKPCaBVPNtwcxDqdxzOR7YaQanR0S4PtmE4yjYs20QeAAunh7ggRigjgdebcUfh2E7old0g4T/ghS8/6TXt3/7NfzVpEWMErPW+afCyg0jRTIuLBP6/f8GxxhtJA6x40GmAeEMcNzhqCj/UtgG2lvdXQ69egKccBNacDGaGymC6W7my2+Y4+oQA28jBCFoLJAp4SRLzrch85XygPoxAu9I5oZajYRe8qB0vrHh2niFHvysXmHhDg3hzGNEHzrpp5ExOQzz49gwE9kXn0QuVH6JBt/cght5fl3s7+R82CD6lYhFK+O8e/ZK8Hf0O67Igud+qwNb+6KIz2r4+KgSANgnUzkWmK0ahqdiZU1YQmedUIhhVKMIcu8s8C2Y45xiQyF/TnrnaX4YAfnp X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 81a0d6fc-3c68-4f9c-9e35-08dcc63fd8c4 X-MS-Exchange-CrossTenant-AuthSource: TYZPR06MB6263.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2024 02:27:50.3568 (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: kouK5/9K1Sume5L3vABoUlwqGnceYv0BD1Lsn3eBEsUfD4Ho0Dkr5VjLhR8JhbZHahNxDBrgRwtucw4QZMY7Cg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5879 |
Series |
[v7] pktcdvd: Remove unnecessary debugfs_create_dir() error check in pkt_debugfs_dev_new()
|
expand
|
On Tue, 27 Aug 2024 10:27:40 +0800, Yang Ruibin wrote: > Remove the debugfs_create_dir() error check. It's safe to pass in error > pointers to the debugfs API, hence the user isn't supposed to include > error checking of the return values. > > Applied, thanks! [1/1] pktcdvd: Remove unnecessary debugfs_create_dir() error check in pkt_debugfs_dev_new() commit: 752a59298ea9c695ec966fc5ba7173897a1ef361 Best regards,
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 7cece5884b9c..3edb37a41312 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c @@ -498,8 +498,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);
Remove the debugfs_create_dir() error check. It's safe to pass in error pointers to the debugfs API, hence the user isn't supposed to include error checking of the return values. Signed-off-by: Yang Ruibin <11162571@vivo.com> --- Changes v7: -Update commit messages --- drivers/block/pktcdvd.c | 2 -- 1 file changed, 2 deletions(-)