From patchwork Mon Jul 10 02:45:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13306164 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: 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 9226DC00528 for ; Mon, 10 Jul 2023 02:46:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230273AbjGJCqW (ORCPT ); Sun, 9 Jul 2023 22:46:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbjGJCqQ (ORCPT ); Sun, 9 Jul 2023 22:46:16 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2107.outbound.protection.outlook.com [40.107.117.107]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EADE120; Sun, 9 Jul 2023 19:46:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JGqe5v3Lk6v9Jh0QUjnSIKWFJ0mp0FnpRkUdexBzKdE2ArqOX2kvrwr7b1V73DlP+O0IhtdPQ+lECjqBcw3eKHvIA6w8m+u7QYn5J8csvn3AmlJgnNSI2BqJ0wDkYwrLjoNIikv/mooOPo/64uhTYYBDfFjOZffsB6CJrmIlNrD73MMLgQTluL7NiPeThisew6FmotS+9TbWvpNr7iu1KiP28zhDx+dicfhcizQ3WVL+ggKEkjwdbAwuO0SE4eUSzH1GH1GCN/EXmbK07Pjike7jbvFaynzkpwB0tobOGbhSiYpdJuHTPQ7FuabUcd1PhNSRLpmiWSmKlIfT0Hw+dw== 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=d99Xn2/i8bO6A6vUpPGXgMa4nJLxLYipdrMR9moSkwQ=; b=j0r05v8L919xBufCiJh4qx1fEmm/Yx6WnvFWW4uSQs4D5DWltGKWeA9vqvGI1xIBpV0dkAtYVGDf+iucdTI2FrUM4zCHCwbJHzwPpdZnmniU34JGhoRLrqWlOI9aMQ2SYv3gjkylXMGX8gjI6gu3kP8ZipAXh0Z5av8XWoUGrc3J1KKvn/3FSpIIlfZKK30N7m09wpFezhi4OKK5EThZnEKiyGgwEU4ax0oTqZfJGlm6BG2z+UFN+Kmpv1xOumHgnM30a90yHeaEjHCZqMWl7DG3fW1P3F3OgBuyQLpiJpxHn2V5xXpDpdf0k+8EhIV7CzweM6BH2OnS7vnoYjA+RQ== 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=d99Xn2/i8bO6A6vUpPGXgMa4nJLxLYipdrMR9moSkwQ=; b=bDwFH8iSt5SbrA+X5ZGeddTzu/iCtWSmS9cOiFucppYbs/sTe51qiBVdQQrXA5vzfsUQRtgeG+jdA5E7+jTnSGkhc4X+CbtW2lo67v6YxTKRs0wxwl51oqwOhZx64DR0byNAyq3B9TnFV17YhO8GNmtgCtwP0j/HZbpS2yQatZlF04VndMJDIaHHpgQkY8pPhpi6J49cAi03a2tuDuK5GqNzrAIAnAHySjZNm9gFX4cJBFjm898+xeANFYDF+c5eJPBOOlgLiszKuBATBRqqgg0O5pyFsSjPqHdW7oTApFDpGG7SKW7eZnl2Ae8CyyR7YoB40rIWOwIeEWhn5i38GA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SEYPR06MB6357.apcprd06.prod.outlook.com (2603:1096:101:13e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Mon, 10 Jul 2023 02:46:12 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.028; Mon, 10 Jul 2023 02:46:12 +0000 From: Yangtao Li To: Sergey Shtylyov , Damien Le Moal Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 05/11] ata: sata_rcar: drop useless initializer Date: Mon, 10 Jul 2023 10:45:44 +0800 Message-Id: <20230710024550.59544-5-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230710024550.59544-1-frank.li@vivo.com> References: <20230710024550.59544-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR03CA0100.apcprd03.prod.outlook.com (2603:1096:4:7c::28) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB6357:EE_ X-MS-Office365-Filtering-Correlation-Id: fa34d9df-7712-47e2-b219-08db80efd288 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZTkOOtiO+d4nIDkPnfSb7ufQAGVGX+DEobiRfrAq1OeehQ5NW/6hMa9PJnqvn7RCn7iN/N49wwaYrAsXGpsePVq9geNjXuhdGKu2THrF/6OCgEJMdb5enXAepCZ/2Tw8ieeWIdHIAj9MKvf5SqURJKy+ZP7G5QRMqucZdrmzH5Al0ZIk+xoTwhXzqxoJdBBWb8KBtF0VttoS1f2SMLMBzwmSM/tSPRkg2VK8o1BhCNXy0zjlUSeiWQwBL0oPOoKWC+RvWv1yQAW9WMme+r6ysi4Nmjr6cvMM7+rY4BLCG0ls12dOtaY91xJmJmujyCQCgNB73q0rKgxfVijidF/O6jA9in10LS5Zuicqga0dAKFKM/KxVUB708U9JIhGZItV0mCc7dHWj82dtES0UbSQeAsFyI+UBi1LLo0ME8tqGqAsOwQXHHBuMqAsy6EH3MYL4gp8nyUr1u83+FEYtKiN2PjCSl46T/3/ClYgey7S37uMDiytYCBBlShyeZZIZe0Dqjg8IjAoof1BptBVh3sZxSIDNVhnIjhaUmUkPxEfAcf1yIEOgrH3doQ8DzjmBJGrcsA1biCZs5ghTOKMJJX/izlDjPLXRtnUenIsocIDREF0QzrtJDWv/niHCnSfTMlq X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(39860400002)(346002)(136003)(396003)(366004)(451199021)(186003)(6506007)(26005)(2616005)(6512007)(1076003)(83380400001)(4744005)(41300700001)(4326008)(2906002)(66556008)(316002)(5660300002)(8676002)(8936002)(66476007)(478600001)(66946007)(6486002)(52116002)(6666004)(110136005)(36756003)(86362001)(38100700002)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: c1RhjRjDOMMM6EvtZNM0WRzvFkcMrTqsQpvHmcsMw4rNV0wiSkKT5/Rti67v2Oih/HjmlL+kN3OSE7baySJT091FlQYprWdt6b/Mv8nBnFgAXGZdfdC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Oxq1rXXOXfhEWp7Nf1Zy87j1sXviW0BQRC+uwk81XPlgpYXaU3CYpGgjhMmhA7NRGJKM/MwpXv3JProXnxwDF8ciya/yboCaO5EVDhal7d3jlgxXzUsJiuKT1gztL5Xo1+obzFhtaa4Ym+4vQzKJcEbsULogT2uJnPEKY5qjSj+PdJZVLii6LAkZWpdhlvho3dGqERl8Dd2/+uOVs2CoH2mOEiKAKhj4mwyAMkD7CzSAIDZG/fPVC3XfxmQj5yu6PzYRNmyZgqxa4UFOx0V1mdL3cmqhqosJwAYO7Re/jhuLwHbyTE2WMcSwdu3GCX30cv4ZrS6KKJP8aZuxFKXPGCpoRFUpHkbv5JFaMv86aFbFP0Hu04v+XAIx0ywyEYLmIat7sjMSJ4xEd6xMTcim1LfJ X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: fa34d9df-7712-47e2-b219-08db80efd288 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2023 02:46:12.2858 (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: QMBAa3DXzgedXPIvk5C52C5sIjDfZxY0fW/gHqrP/MLE6nwTp2usGKhodCwD4d2FI6hdvH109/WmEtauqy8Jnw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6357 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org There is no need to initialize the variable ret. Signed-off-by: Yangtao Li Reviewed-by: Sergey Shtylyov Reviewed-by: Geert Uytterhoeven --- drivers/ata/sata_rcar.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c index 34790f15c1b8..f299b41ab3e6 100644 --- a/drivers/ata/sata_rcar.c +++ b/drivers/ata/sata_rcar.c @@ -862,8 +862,7 @@ static int sata_rcar_probe(struct platform_device *pdev) struct ata_host *host; struct sata_rcar_priv *priv; struct resource *mem; - int irq; - int ret = 0; + int irq, ret; irq = platform_get_irq(pdev, 0); if (irq < 0) From patchwork Mon Jul 10 02:45:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13306163 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: 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 DAED3C001DC for ; Mon, 10 Jul 2023 02:46:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230338AbjGJCqV (ORCPT ); Sun, 9 Jul 2023 22:46:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229937AbjGJCqR (ORCPT ); Sun, 9 Jul 2023 22:46:17 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2107.outbound.protection.outlook.com [40.107.117.107]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC5D4E6; Sun, 9 Jul 2023 19:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hEYckola8h9BsxjOc6fY1tek47SzCgAqO/o0jn/6d7Qh7+cN78Y8U4EWYO1mjvhWLLhRQWKwv+dye5MUmBUITqKYa4G8MY6HICJPsOJJcxbUB1638UcnWRiAg6+zl/RgVmgI9LhAN04xApxglSq3sC63xZ+qpum6lJzqDnQsVR0L6eTazsRt4HYCSgdRjqgRlrWAIwitC+fSqoy8DT5HcsnGD/fqL1MhKwu8nJMaH3wnxgaqsW83DKZZKvmTQ6CwYAj9G+7XwKHeu/y4N4tx+bfL2Y9FWCpHqwTpikAPditaFhU/UEtuld+DYC0kWlLtINk4IhdOrh80Th3eXYkPRQ== 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=t6EOzR/dAT7xGS36MAb7FJ0H83BNPr5dOFOezSZrraI=; b=efjSHuNg0GmgXp/Nr+TlIQLDlnBGAfSpeDPb2f606ckav84IFDTv4Jr8xKTxCzM4iT9zbfJMRyRE2Od0W3Bs7T4Pd8m4p5yfLSMi6YCuhfi1M8HE0eyim/d4PyMUI06a2+5krHZ22XDtcumjrTJp/Q2tSRG7PPuxEkZg3bcW2WEQgKaomImIOTO2QliGsS+1RYDGL7cZdjXouD4SJ/rfhyknr5vUR1VeBkSA4B162nujnDF9fZePo84CdO/u6zjZ2S/NjY9P8xT6YihJApNr0dnbk03D1PcV0Yg7wq6r5tX4JSZAj7wbMggFWA9K9aA6B5TK/7ARxb6OXcWmG7xusw== 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=t6EOzR/dAT7xGS36MAb7FJ0H83BNPr5dOFOezSZrraI=; b=hqild5JnM/wVkn3Hajr88Sui/EOs8wrocYg9G21xa6IU9Ae5/c5CwMtTWQ0mObmN86SKwuKhKsqozDYTZ8U7qR6fCS/QfJIMFFPLQWTjc3o5iQqvluEMnlo4jQFEJkXHw5F+m3Ht0YOOD6G8P8HmLGHqMWvMLwLW9zBv1HsgbxqtIlPjKrin8y8olqK2a+drQ3mtl9XjXhcQ7Vp6AIS3onHT9H+mZlAAPTRsVhwBH0zwkf3F5cEsxEoft29iViwzosvmnBjv0cLneEks/2btVxhVcy1gP4OMHiAK6GKbjjlze0jud07FqPIRp8e9X5dtwyU1T1wpnzWO8kyBXFGc1g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SEYPR06MB6357.apcprd06.prod.outlook.com (2603:1096:101:13e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Mon, 10 Jul 2023 02:46:14 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.028; Mon, 10 Jul 2023 02:46:14 +0000 From: Yangtao Li To: Sergey Shtylyov , Damien Le Moal Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 06/11] ata: sata_rcar: Remove unnecessary return value check Date: Mon, 10 Jul 2023 10:45:45 +0800 Message-Id: <20230710024550.59544-6-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230710024550.59544-1-frank.li@vivo.com> References: <20230710024550.59544-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR03CA0100.apcprd03.prod.outlook.com (2603:1096:4:7c::28) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB6357:EE_ X-MS-Office365-Filtering-Correlation-Id: 98048b6f-eb3a-416b-a994-08db80efd3b2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8aWpXlMHkP5hw4EIiFAp6YaOIGKEmNj+SC1udFG/MYlPDgxDrTHsaWpDBrdEyL7BHASYf/PTJjwPUdDNplhcAXMCFVFhEaGAQXr+DNo+YnjU0yTtgcDwg+3W/MezkY2r0HqUX3g/RNu4DnZ+EsIakRpbDRBd2blXGDk8QcEffN+POUy97NJ3frPMgZ5ZkZ1axYyOR2yPm5Dl3SjW1r43wOgvShJuAEn5FRmQrpQIqyrEGfaumuqp/R5Kk44uj6h2jJRKpHqAfDAVhv2KD8eClbq0P9Yo+CB/TOOlrVpYt5p87LMS9QG43UL2P8PU3V6CR4Ro6W6Cq21VnsrOJQwKQ8LemmoZdPO4IGMk+5R9uQztlIL7t0RoLiJo1gcBU4/GX2jrObnFVEukUpW4sNad1KK2yEy5wK9A4rrOoUfFY21J8HZzPFqDC/dwUjvaQEVe2IpLmWA5295ID/SPHAvu/CjFa+NE12z1nn3s9nKh/onAku4lE/2EihjHXS/h9oMObXU/V4JD467agQg2titc7IsfTYKiImhpDC9pvgHsqLmq76JMID8jefUs756VvctQlnOxKwadEdmRTfvUkmZV4SYXe+mjlehNP3XN6kcMnYxb/orTFLgqPppvTxrxvvej X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(39860400002)(346002)(136003)(396003)(366004)(451199021)(186003)(6506007)(26005)(2616005)(6512007)(1076003)(83380400001)(4744005)(41300700001)(4326008)(2906002)(66556008)(316002)(5660300002)(8676002)(8936002)(66476007)(478600001)(66946007)(6486002)(52116002)(6666004)(110136005)(36756003)(86362001)(38100700002)(38350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MHLLJ67ODRu4w5iH7gRSRTq5UazUVqoWr7RNWwwJDD+TacW/zuY4lUrtQt3IikBiNubAFqIgcKvu4ZHUyJmloPoeTlOtRvrvLWuSTgd1wLWZW8IKk8oD6Kv8EzFDBs/XL4u1OBVfpXcsrTDouA3CGZYpMC3n/PvkDfaz5jZ/87jjCykzm6eVr1Mi48xStiCsJ+JcatAq9mgVDWv3BJyIZGZVgJRGAdwepUGxqH9+VqZIOjBLvlSRgGzZqTokPirWfti74wKeNqujfkV3aUUloppNhwD1x4zIIYiRuWqjvH6/yWUOBx8eI/SW9hVCooyKPtkxEFiHUdCaVs300qjNf6Hu9Hzj6KvEv3iplsuvbtEEGSWVdX5S3IF5ZZfGpyHZS/5MvlWOZYjWUb08iE3EZcW0fV3VCwoMFlp6zZC7CZaGNLAYw78X4dVL+zdnaLN4y51LDrXA9cvzcSbzi+n8FQRe1XpGy4+RLucL1BciCLUfOe7K0rgwYBPuXdkmNOnAM8wNlCXRVSUJsKrZBtBNYnrEa9q022eq6Fs9IepKcZFI/wC1K8Oez1V3aSpMzDN8cDVtaJWuFcFYY37 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 98048b6f-eb3a-416b-a994-08db80efd3b2 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2023 02:46:14.2460 (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: cAMDPmDRT9tZt5EdSLUZq71I5vV2FFkWPRIYOP3g640nt2xgvDZOdGz/ClEN+OX6LMU9TssqVfjQ4XtC9ottYQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6357 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org As commit ce753ad1549c ("platform: finally disallow IRQ0 in platform_get_irq() and its ilk") says, there is no need to check if the platform_get_irq return value is 0. Let's remove it. Signed-off-by: Yangtao Li Reviewed-by: Sergey Shtylyov Reviewed-by: Geert Uytterhoeven --- drivers/ata/sata_rcar.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c index f299b41ab3e6..43c55ac89daa 100644 --- a/drivers/ata/sata_rcar.c +++ b/drivers/ata/sata_rcar.c @@ -867,8 +867,6 @@ static int sata_rcar_probe(struct platform_device *pdev) irq = platform_get_irq(pdev, 0); if (irq < 0) return irq; - if (!irq) - return -EINVAL; priv = devm_kzalloc(dev, sizeof(struct sata_rcar_priv), GFP_KERNEL); if (!priv) From patchwork Mon Jul 10 02:45:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13306165 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: 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 30B5EC001E0 for ; Mon, 10 Jul 2023 02:46:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230319AbjGJCqY (ORCPT ); Sun, 9 Jul 2023 22:46:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229795AbjGJCqT (ORCPT ); Sun, 9 Jul 2023 22:46:19 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2107.outbound.protection.outlook.com [40.107.117.107]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9037124; Sun, 9 Jul 2023 19:46:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PaR2ASUS9hSfR9anNr/3WlBw9JXiS6PLrwYVRDR1kRBynVvqCz9YYmcUIVDy/0JdRV8VjmpIMy9qOjcokVXEbIK7hdBEaJ+0oLqD8OVpHsrf6v7LvWtWg5LmdTV2xeyvFjLtVcUrcEqTzt/GhkMBCDLubBYe68cRZPYQLVeXyL12qyDUvIBYTI6fuOeb0lDdb1GKe2CF5Kx86+7AkYotjlvrhuW4aq/+h1VuvlWIJlCXKA/2TPK+NV2KR8Bq6Yo7hZ39nx+F/TEPrtIO7EhyyyNG6bR2XvSMiXNrdf4qrvXe5UCJL8CfHZJ6roLDuQrBHYHuifpwfLZKaLJwGAxesQ== 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=15bhvgMdd/Y8mpgBdNCem6FSML9afoi1g2TTH4v+ZDM=; b=Dleg8k3WpV7BdXisiJNOziT8BfgrkAhbFiWwfCecx0aFNRecTtuMAyd1NX9jdjNz18D5htOEivJ07YgaIvWQ2DVWcUg3mnYANygwSh6pAXeCBISCed5riox6x5Ox99wEkRuUuDM5gzGpNHkfsP5Rbq+JNbth0I0rilmRXFC3hsK7o2gi2G0EMaicnfju0BBHOhry3wbYHQrGOoRG7uI5JlwJXbYw1VkL45HXtuVZg47O+9n9jyFIWY7Ytw50IRZg5NLJDxwySmEIt57wT+7HQPZiePrOrOTPtpAAe7rdk3tNk0PKIId902bZiNicfr2LCyyj7PPMYeNO1xXTOe7IFA== 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=15bhvgMdd/Y8mpgBdNCem6FSML9afoi1g2TTH4v+ZDM=; b=kZgLdy/B77Qa8sZMosmdW3oWyiqtVxTgvDjJ21yUd/UqJMNB+UF3W9rSMVeSypxDM4X53MlcD7WesPUccRRGEYtfJ77iH96TzuGk3vpIHpbnQlDWBQAJrW2cV8O1kScKRVN5RSMlDAAVOcWoDE0amRylZ505B+hS0P7ifNsTa+JJkhxmD/dtyabUJECUFZQa8pUns9r1vSLDEUhSVmH76Ck6H/AGlqLEwyyHGDdsEpNIgX6Jh2lH6zpA0HwaczVKPA2kq/SE18FYC79AUiULId2ucq3Q0NanUv5ZykY/MEDPirhuUWwa6g/TPQofg/A9qRI6wrAZGbUxJxlrZgEhrQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SEYPR06MB6357.apcprd06.prod.outlook.com (2603:1096:101:13e::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Mon, 10 Jul 2023 02:46:16 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.028; Mon, 10 Jul 2023 02:46:16 +0000 From: Yangtao Li To: Sergey Shtylyov , Damien Le Moal Cc: Yangtao Li , linux-ide@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 07/11] ata: sata_rcar: Convert to devm_platform_ioremap_resource() Date: Mon, 10 Jul 2023 10:45:46 +0800 Message-Id: <20230710024550.59544-7-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230710024550.59544-1-frank.li@vivo.com> References: <20230710024550.59544-1-frank.li@vivo.com> X-ClientProxiedBy: SG2PR03CA0100.apcprd03.prod.outlook.com (2603:1096:4:7c::28) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEYPR06MB6357:EE_ X-MS-Office365-Filtering-Correlation-Id: 1c8b5729-cf29-4954-50cd-08db80efd4ed X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: V/KbrVbYDuPETymlW4K2piUgF2JfPKICoiLA/aSo1/FftSGneurfN1nvqJKNnp1nBJIeWDSgCjuYvY79ALtOC50IKrHUNdr4pvkxuUGjnZgIdIONjW2o5+brGSM9HLDTbaHu/y2J7QINJVSZmGPmAUXR70kBiloCLhyl9TG8NekzycANmNjFKt4zSQynQ1TaO3dMbwjZ8+xfMggwV2SrnUxtig0LRqhwA7bkT39D1ClqeQXUW+9KbRSMN0Qor/f+xmkb+uJ2JR1tlbs+u9aZyRs29rD8ya5LQxD3+OiZbFZBUQN/OyHVfUpwcZsvIX23WyLfPb7SEO3FF092bwS9XZW5FX3uSciMZ23Plm733e+rzmRqLEWsF+5eKcQYPmKPdooqlmYoP7rscqvZZ6fn+KkjpjSNN6LIViU1JT8JFuoJFnWugI05hyFBna7fUGBRBzsDG13SMvZ1V2vA5N6GHBf+0cYkM9pdi55QgEeVXYu+XIX4TIUyqmQvUyUQeRvfg4i6PZTxsefwqInYWFWj3WilEWSzGezmizg1za7N+geaamxelLfbcDfIgaB9inxEZvbNcH/F3oseL6x94Tnn7x3n+W9z1hMu8HrziWAdTdFGtug0rGZvggJgqDvOMGn8 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(39860400002)(346002)(136003)(396003)(366004)(451199021)(186003)(6506007)(26005)(2616005)(6512007)(1076003)(83380400001)(4744005)(41300700001)(4326008)(2906002)(66556008)(316002)(5660300002)(8676002)(8936002)(66476007)(478600001)(66946007)(6486002)(52116002)(6666004)(110136005)(36756003)(86362001)(38100700002)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vZSqmpGdpQM/IjyokyKqKt9MVU52jC8ybKkJWIWBswb9pIl4wm+xrvsV2J6+fP87xpimXOXu0wRD8FKbSJGEDOJcXLy3B3GXgDOeXT03lFPuxHivwqp703hvEvtQIcUH8/k8WzDKa9yaXF9ltB/a5E8pDWMBNCXbA9AST0f3VeFhzE5nJ8C6KxVEw23bhzt+Yw+Vg70VlCaaYtmSJiUxCKWYGFMMLlvcflYy0E3uinyYaHSctF98qa9ZJTJpa4MpYaLkEmkXmgFMt+F1o3DfQr7FbWCU2TslsLttdCYrppq1ClAaHwORLfmw4bNuoivzJydnX/yH4u8dhR6Pq6vq6MVi225vSV+BGmc5FK46jEH+pPBk8iwPUkKVsYYzx/jTTGR9Zq/Xm/B2VBBMa05zHwUKgVPBNrEYIEmEHrZkz5fcDUzrE1mIp6U2db9+9kiIpUBXuLAZFdxhPTOGjDTpMhT31OArbqRTpur7e0y0JmpX1kFngrK1JklSuV6P3tG2yFldba60e0vNnWbxYYrIf1zO0Yt/2jHLiQtz+XKLk5FJrvNJRfR4ZO8ZeCTl+8wWWIe78xtXIkaeDqZpEeCQinPJF5m+n+hbxzC3OSRl9K3ocvi3wrE5Z4lcIq39IUWB44jBCo3fVp+HCXlpIDiJI1sI/JiBHhTy8w/56twO5+h3oOSE2NOgLzTABVtiIkM0mmxgwejTFpvM872IJQlVNkAR+iB9Kg+Z6Iyp9FN1k02pj1JTn3SmMvhBRwzVVhaOWm95YecPYkw6KncOywhuWbgUQlDCKfZbVUVsKkFrwDfq2SSfaond3m8XznJrZ08+l71R/XOIahMt26jExM8pfMgmxCiYB69YiEN+K0IUkbCoX1BrMQiDHl3LPNQqWEZWZNz53ywoIpzqsTam1ZkfbnJwGJyRoD7XEv42Ck96w9AMKvJZpjNs06fBU+w3neIWHupl5cwcSK1fIPgCg8Lq+Gfu+yKARMKoOwfaFYMfVKGeZR5HId2fuKDMvOrt6MHfc6/mSLtJDNgC/J2VNYOYk2T6hP8XFJvNWVAS5CBnUZjhpPDaPlt5Bq35ivhuIlB+A90PrM+wupOMs/0S7JdcMtIK37TktdoAZsahILkhRHiop81yqaWUs1wYgRlI78OdqBqFsClAu6vm1riyD9vLxNm1q/UwVE5Pw6xCoQO1+bTs8h6ED/4hmHbZ7KOpio7hMqeZxlP4UExpqQVtVaapQd75ywIY/9MQe0k2HAO6beMcRcmR1erLzXP3OnKelFWcfTG+tgXUD930b8/qm3jbQFo8d8+MxO/flInXK6AHUiElEmHNU6JkBovHXsbx7WUXR7ena4yDKlKD5XpEFoXa9fiNyqzcgWxrQTI/eUanqp4dFhbOAMwm/3Omi5yChxASpV2IxiBkLL3r/ZiXi77Cv5W7adfEFjVHIyo8yIkqlCoOC4uERBrv17o3vAWAY5fgNiB8OGZT4rNLhgeXzZb76jeP2YroO8wdh40eChk6UMhn4xSvDXZ/fBDSNrriSwRwQTKrj+g2gJltT7PgysMrU8/wuivjYnYixQOAHySMclmM/DZjE48gGWTUX8wNmQpZ X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1c8b5729-cf29-4954-50cd-08db80efd4ed X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2023 02:46:16.3194 (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: a6U/oMAb3s/fpw5Nvbmw3FiRmiS5OHjgrmACxvRm4djDi2SM7M1PE8vsQjWG4VJ5VDZW5+TKxX53YlysvkL2tg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR06MB6357 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Sergey Shtylyov Reviewed-by: Geert Uytterhoeven --- drivers/ata/sata_rcar.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c index 43c55ac89daa..63f8337c2a98 100644 --- a/drivers/ata/sata_rcar.c +++ b/drivers/ata/sata_rcar.c @@ -861,7 +861,6 @@ static int sata_rcar_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct ata_host *host; struct sata_rcar_priv *priv; - struct resource *mem; int irq, ret; irq = platform_get_irq(pdev, 0); @@ -887,8 +886,7 @@ static int sata_rcar_probe(struct platform_device *pdev) host->private_data = priv; - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->base = devm_ioremap_resource(dev, mem); + priv->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(priv->base)) { ret = PTR_ERR(priv->base); goto err_pm_put;