From patchwork Fri Jul 7 09:55:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13304671 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 2119FC0015E for ; Fri, 7 Jul 2023 09:56:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233004AbjGGJ4D (ORCPT ); Fri, 7 Jul 2023 05:56:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231845AbjGGJzj (ORCPT ); Fri, 7 Jul 2023 05:55:39 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2095.outbound.protection.outlook.com [40.107.215.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43B51210C; Fri, 7 Jul 2023 02:55:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZRwDUCsF+9QO1S513mvfJny5y+GtpLRxn8dEECG2X9dqZRwccvvg4yOohOpTEa/tQJ9CH5tKtteqYRlHV98/td3prHEEqT2284Ueb3WI65piQkba75R6RpGLJSXbm1k1U0XrEfReqWh/Qlqdx1EZziCxkPf/e2HBo7j5Zl3h11aPfu0Uo52Wv+aJiKAsqsQp0AmNQMxiXRBrG9xcA9XF1t2R+xSG6raF+XqnDXEgU4908YVpGeLnimFwWVkmAfDW+BDBL33oXh/5rKdFVRLqn9Z9g8aDaUeAJMXdvOPNiPU9eBRYMRlXRraB4MCS7tWEiRvhbCKC5S+Fg6GUwMk1EA== 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=eZ6EW3nF9FBgSOGqtMO7sA+4CxK7678/Ifrog9feFnA=; b=BUNGDbl3ulUtxc3FnfCRBtkYUxVS2r/ODMLbaAuuwDCNG4EZC3bsmrSCozK7WRJcWteXflGSjJx9y/xIfdLOh2H4g7Fej48IZ+A2CoRlXV9A+g3fL37RHxGjuQMBH6CXyxmg871casHyqBI2RSWwjmIv/fNekiTNqQapTx19gUdxfAxlnD6BQ+KPln15lSZzp2nk+Q76RwrqOH1kuuRJdF3sxqfj17RIi5G11IVUqbSWLm8yuWeE5LOvDgEs/xvTKv0sJzHIEEy871D6bvmm2y0ClHkoM9plz4r7x7Y4BAXmEgdsnMQyMsdzrO9x8r7XSELKIJpJiG1yqExsk2qmrg== 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=eZ6EW3nF9FBgSOGqtMO7sA+4CxK7678/Ifrog9feFnA=; b=FRoNLPKDSoCZELU4g0q9WyiZnbg5q8yHNr9JZ9L7QeK6PKh7coTIJmnhIwR+1hEMDQmSJ5JF7jRRIR/PXMqOq5UKU7po/wpi889WClkFcU7acda0KruUyH2BNcIuQVoqLvYJJ9L6FPWyl9Xpl/PsCb5vClk3jnu4Jcxxx+MJ+5uDWEoMWKqd9VAzVgeM3+mZ2WoDzGGGXnMswztY+ow46Zv5f1wQiwKwEGLIS7FYr6BjjWjceJ2Q1GyPw9c1eDauwOzcU3WYAU2VlfSXpQFhaF+YJ0XAkwSYqvzF/xpk0UVOCTwlzeMXEfdk+NtI3WXGrEFU3hjqKbs2PHtRGUueBQ== 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 TYSPR06MB6793.apcprd06.prod.outlook.com (2603:1096:400:473::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 09:55:34 +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.025; Fri, 7 Jul 2023 09:55:34 +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 v2 05/11] ata: sata_rcar: drop useless initializer Date: Fri, 7 Jul 2023 17:55:07 +0800 Message-Id: <20230707095513.64224-5-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707095513.64224-1-frank.li@vivo.com> References: <20230707095513.64224-1-frank.li@vivo.com> X-ClientProxiedBy: SI2P153CA0004.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6793:EE_ X-MS-Office365-Filtering-Correlation-Id: 429e2b9e-1d10-4d74-5d69-08db7ed04ea5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xCLWKG7c35mbONxRTv/nsiGo6ITsVwGIuWICL+K/CRKZ/ekQuzRp2ahq+4kRd+i3OeiTK51iRPojWU5yjCbZD/y2dNZmAFnQ9FOZ60oCUhAOKpZJIbpjh5hlbg/9qOlqhNr7mAopmfIV+olYRysZH0Ck+cxcpiVY8dGMPy0fSoMMlQTMVg2WdQrT66iHueSMexKAJalykO9e1Qo9eAu19hXBgDkuTt4tZRtTXXdRp1JfvBGDlCrwBNzTiw7ZgmbFMZ0jlqNX2f+uD/sx7KAVJBjUpjib7GMWnSTz+o/ViGd5bYxK2Rx4z7WuvGHqQNjxIrnFTBffhFtXPbnjLws7DGCS5NEs7BEILsTLbB257/jOAjlEF27n4oOVLSxePltjWyZGF42VyHp+4eDn/Bp8jEZSe1j+WS7xiU6BPnAbxJMAHLn2ArfEoWoxhP+x5HIBqQ4EENTCHBfYf5qT7Nz1CLDr4Ztp4emBc0USaEtjFJDXoi+nzp03a8ggb/FTJ9IO4SoJBjeTBPebwq7u/HuKoLphMoWTNpE6AVkpH8F8jiA80qUFILN7Uzg78yb3YiDC4a2u6hCGa1ePr1BxMv1yHPHIiqqsnFq6dRehxAcKs41xm97q1JQM+DZGGCnicigI 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)(39860400002)(136003)(396003)(346002)(376002)(366004)(451199021)(66556008)(66946007)(66476007)(4326008)(2616005)(38100700002)(38350700002)(86362001)(186003)(6506007)(26005)(1076003)(83380400001)(36756003)(52116002)(478600001)(6512007)(6666004)(6486002)(110136005)(41300700001)(8936002)(8676002)(4744005)(316002)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Ac6eu6gjCpR0U4yIC9iM5FrBjfsvB/hY3sYFnneDrEl/fGsfy9CjX3adTdaQgPX0dNnEbWz5fc3RESDcx+C0bHhPoGer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IpxSnjIzbi4GvzrxQrc7dtjMQeklKf8tXv4/G1h8Q4P7U1vI9++UJp71JP6Oi/2tvcrdM20llT5r7keb/zu0eJMdVSVST4dmlJByEaZllG0tS6cX87Spaf5XLVseRHYDb9/rqFhg0ikL3tdVVDxr+RHBKqw7UffQ5EViCg+vKr4j8TnxKZlXYs+UgGQbCEi0rlshP9K1RwyslHiBdnZN3RisFobeH5U/59l6DX7FrJX0mBOM69zrg9xKTaAK7sSCbOZv6zSQSd+DqFo4pgpzwDTfeQLFmriS1Jf2GrxHW/1mXnMhayoXCqhBptomqnmcx9zG79N9QhpF36OjzwqQRFQpgSxOE/9PSy6FLl9Soej+VTGoT/bMv9bjUi+IM3ouNJmxCHu9/DkvNsEhdn4S8W/H9psr3CnAvl/alQgnvpgXcPi8MNS X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 429e2b9e-1d10-4d74-5d69-08db7ed04ea5 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 09:55:34.2752 (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: iu6eN9zE6ImPNpSjMOIUmWtQ+50v/1alsYkZgSpxrTJh00B8WvQ6KNBquF7KrZV0xRQcGLQ61fhPtXnDDcvMBA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6793 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org There is no need to initialize the variable ret, let's drop it. Signed-off-by: Yangtao Li Reviewed-by: Sergey Shtylyov --- 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 Fri Jul 7 09:55:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13304672 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 76DC0C001DF for ; Fri, 7 Jul 2023 09:56:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233027AbjGGJ4G (ORCPT ); Fri, 7 Jul 2023 05:56:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232831AbjGGJzl (ORCPT ); Fri, 7 Jul 2023 05:55:41 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2095.outbound.protection.outlook.com [40.107.215.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 950F22119; Fri, 7 Jul 2023 02:55:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DS2Zz9XSjLy60ReM2VWFoC1On45rJaZLQmtXc4dzoGJa4gkCseWBIKGdDB9tEtWaf4xmj21wcaqKzJPZEDzbdicoK5qsvxJ27PByohHzTSN8MJFAebYUc238/W19PGeBUQMN/EZje/zN+Qg4JR9vL5gekPVORzCyKvNHYN86I4aIPAknXDMyooH1IbuwaE6lVabiq7peOh6oWBpNFkD0Vw7DqLE5ijS+4Jxal2xdxxfzhW8rouy31K+Yj/BQER2Nkn07uZhNsVAgcHJOx9AU52uTdbsugVVySBYyCjfY55pQzf7l71JXuwyMVvUkprvk27aAoCEUUjjWIIVqoWKwOQ== 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=Tk8Zx6CrKzQ3NZBVW+Uu0HKZvDqlMr64Zf0cUpm1qx8=; b=IsZ4vagZmVHkBwn05XB+e7MT/jL/ablPNlZaM6nOJM0fdZWs2tG2he/ynP1/IqCN+DW1SKAiOInr4WgQv7UrcS07ddSPvuid4R1jEKrCj1Bv5KEnnC9d2ei2+yKDDm/I5iHgoBKzA8xNqI/nThs231Bl3Mg3GSOGDUijVg4C78P0AVGrQ+M37J5aM8yHaDsGYhpc9efkUMaPe0Lgc/vvaJSF/aFMas+oZi6lfJCDgWFeCKckAnjUsq04e8CPCOKQCzncYvJVQCRVh654+PeJ6PvrOlKv4K9P5Ew1IagD3ccUHa8GIK4CkJAmrJ0NP0TtqHUshEEA/wbdKJB7DpAOjA== 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=Tk8Zx6CrKzQ3NZBVW+Uu0HKZvDqlMr64Zf0cUpm1qx8=; b=nR95alaB7KaZHfgN51wJiE4PpRQWzue4xX2tkHVnTw/JForEfx6kIEwimeugwOhbB64PMhnjkZgIK34umUaoW9G4KeiqT0JdRtqNO4/oZjnpQlsSKEvN2Wmf5+m3YsBT3c3eMSzEnNsBX33n21F1xSZqe8e2sH0TciCa4UWZVK+DznBvIMIXMkbijIwWfUSNOaLbVQ5zDDTTLxxZ4NQkMNQqkGV2P+ag852G7px0FxIODiHJ3NiHXIsopM959K+L1mmlzEiPwR0kDbCOZgKr+u9rExPW0n/yTacjdCL6QGSsS9eh16E5dITPdg/9lIw8v5Aoej4QE2017JDZPKaU8Q== 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 TYSPR06MB6793.apcprd06.prod.outlook.com (2603:1096:400:473::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 09:55:36 +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.025; Fri, 7 Jul 2023 09:55:36 +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 v2 06/11] ata: sata_rcar: Remove unnecessary return value check Date: Fri, 7 Jul 2023 17:55:08 +0800 Message-Id: <20230707095513.64224-6-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707095513.64224-1-frank.li@vivo.com> References: <20230707095513.64224-1-frank.li@vivo.com> X-ClientProxiedBy: SI2P153CA0004.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6793:EE_ X-MS-Office365-Filtering-Correlation-Id: c1d05c79-8ff4-4d06-2e11-08db7ed04fa9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: L5nZ+DTcOcdQpDNTLqGdqx9q2tLQOVh7P31CRh6sGfGGph6kzzIpDO+h2MXqcszoGI2aF3Fp88xKcdjAKk3ITaUTTsqYDTeACNLuzvpXL8oEShQjbaLA1pytgzNbGJk2q02JBBFMGu414WwHix/NykE/E8f/hiVRbkpOt5sF1q26zMxpFygEEa4TromKbY+JD0aYQm8R+/OpM5+TmGtruUSm8ZAs+zla7NcnCR5N+EtjHYD8uOSRkIxA9yQ8bc2ImAaJZ4ciyfHnST7fmDuPHIwOhL7PFyy/qWwmBvAJPlSh76kEOULlLbZ/gM6breZtDjhNWFZmG0j83XhJdOx3DJMqMvrgEZiLx9qnTfBhF2+4tgnX+PeLm3mxVkNvDvFWXrqq1+onFq8+LIIAE5f3s+wd0EQdzpVChmKZv4v7GE+zr+sfTnEOX/Gj6tiwuG7grIDHSBd74F4hb2Vpbiq6FvT0q8gu9k+v705Lj705Ji7INy2Z8MVEq7W5O1heXYwDsckLTBRECBQyxo4295m5u6Bpfsd2KaFEEXskUPZdaMeBKN1XXnADVceJAf+328B8yS/TuL/aU5LmA7QbmeH5u+rb5NnBoIH0JrEjXypFsXm2g66ys6+yFAGKpjFx1h1V 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)(39860400002)(136003)(396003)(346002)(376002)(366004)(451199021)(66556008)(66946007)(66476007)(4326008)(2616005)(38100700002)(38350700002)(86362001)(186003)(6506007)(26005)(1076003)(83380400001)(36756003)(52116002)(478600001)(6512007)(6666004)(6486002)(110136005)(41300700001)(8936002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/1DhSX0SHzatdruEuPWISK0k/4wMIXrCwERLGa7FYEI/CUjOLwIC6txW672Yzz00JbA3Pktg5vVDAd2aMTcuEesTXhYmiipwsyLoNWV4yXjFlaYhE5mIYpu0mN3Ya7GAePZpnoqSDzMEH4c7CBXxnKsOIbkD1EdmiIJ9MTTEtbHzoTvfLOFQLSQpKBbf4a1X9Ti9MfcmE9enU2kaB/d7bfq91xvqRlPkkSbMoxwbLBYYWf5m4XOyRSVrdM4vrE2PwIaXFDpU/1TRdDlNkASKc6p5puAr19DAzWi9tnPro3bcaATbmTKzI4wOOpetiQBCZ4mutsI/LzaeP6F4h8w1d6cnQ8YLyoLDfNip8ueh+yaYr9uYxbQiwxTkS0jIm3WISEM0ToZ6LNMtta+keYb6c7GrI9VWWIutMUg6BKvw/OsCo1Umm6AZ/soqu9AQT6eRFeLzRjf1aaSiNweqtZxCkkRTl1yqzg4V3eUNtaYQ45f9Oz6TK3Mo22srbaoJEunySiLBXAiW8oatWv5rTbgWRxb1zmChBrfgosWCX+CgW6sn6ABGAsj8+A9sF2MoeY6+UmvcGHgfWmwiDqzFwO2geDhFNCrEGaG8f1vlQwDrVVXqsgirMCBUD4x X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: c1d05c79-8ff4-4d06-2e11-08db7ed04fa9 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 09:55:35.9809 (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: YPU3scDOVMtlhZYqO2GN6/dUxH5BzWdhNVQwuw8MTagN4THKUKRdJvQDJjocFq1kCQ+jg4lJioOQYsEa6A3eEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6793 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org As commit a85a6c86c25b ("driver core: platform: Clarify that IRQ 0 is invalid") 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 --- 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 Fri Jul 7 09:55:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13304673 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 0723AEB64D9 for ; Fri, 7 Jul 2023 09:56:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233053AbjGGJ41 (ORCPT ); Fri, 7 Jul 2023 05:56:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232874AbjGGJzn (ORCPT ); Fri, 7 Jul 2023 05:55:43 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2095.outbound.protection.outlook.com [40.107.215.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15A3610E2; Fri, 7 Jul 2023 02:55:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HGEDfdjJD4ne6rx5MiSnWxJ0dLY2nJA8WwijoFhfMu3UtJGfb3OElOD9+qgU9DON1HF9x+By0lwzFVU0V1OoMe/WTD8O9SxKCsuXKS52N5TPL+UFBOFXPd3Xy/hTyctIkhnbjctXdHaiOz12Tl3Ypgdg975y28id7HFS2WzI7cHu13YIQpLKofjXDgHFiOjdWjipA4Lg8Z6LHWiQigaDKIafGYRYOWQ49BqqIc7I2D9Pls8i232jBGDnKW5UtYQ5ZClXuYTCdXbkmy2MV9LrpkpyVBUEcb108vwkAVcnICZma68IhakS3WlrGIwMzW/6YgVSKs8MkPbFWmllyRjcVQ== 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=AiGm67ePCX1xaCe+CiexNCc4ZDy2lzA9Mdjt6KyrAr8=; b=cVmlrWN6BPim4RDykg0OUX/0p+7CrFZK1Y2J9362WTnhm+SEd1mPXnpd2LxY6jqbZ9JBZbKzZxtx/KrGq0yrm5/SLXpuoLYyaOGihv/+tb+Z6U9jMYuIvGKcN4Oag2PnmThccrVCPW+U0oo0/dGD26VI56aGSGo3ukc+gHRxFf9zACMwKZDvNfi9hsoo4beXBpjNvfL3a7nAc2PXvZgMXh0JQCweS/8XGaPJT95OwJsSYfEp30YlANCzsEMSwA9XeU0f4YQBEf6SwWB9fcBUgalu5FEZUilj8b5HRsYqT+3kqeiwSad7OBEWr9KW5XkXA5ef/jz3+lJ3oT/7JA+K4w== 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=AiGm67ePCX1xaCe+CiexNCc4ZDy2lzA9Mdjt6KyrAr8=; b=f0+C3iE5giLLYKoFsb6rW8nLn4Wfkb1Cs379uQkVTqW2Z+CPnU3Ol2E4ddrOWdvXjtNZx+37b2uMC8NiesXg6rlqraQnpf4zRKx6UxqshkNGIBfPX99IVXXlcgfh9ZPlHFGfTMT2gFeKeeTmJ4p7v7oO5zKGjI5IlObNjZxISwNsNmkDBTPfHL8/2V+Nhs9eyPBgS5a5e+GUkyyZic/aLwzFs99EenmMf8dlqrK9/RGJulvzDygauEtwkwrlo4CYrq/nVcC31tzmgIuFeIJZ723MfpT/vzjEsvlv8+HWuei4E6YhRW1Rsnd6C8D3IyF/USRNsZdYhkQNb1fWUZAJvA== 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 TYSPR06MB6793.apcprd06.prod.outlook.com (2603:1096:400:473::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25; Fri, 7 Jul 2023 09:55:37 +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.025; Fri, 7 Jul 2023 09:55:37 +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 v2 07/11] ata: sata_rcar: Convert to devm_platform_ioremap_resource() Date: Fri, 7 Jul 2023 17:55:09 +0800 Message-Id: <20230707095513.64224-7-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230707095513.64224-1-frank.li@vivo.com> References: <20230707095513.64224-1-frank.li@vivo.com> X-ClientProxiedBy: SI2P153CA0004.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::23) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TYSPR06MB6793:EE_ X-MS-Office365-Filtering-Correlation-Id: 2e5cac86-9d86-48d8-ecf8-08db7ed050b8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Jj1ptkEXdpiGyjYH0OmL6tPeNdK9qEyFPvdspRBy5pDeoLPQSa3wX44TPMrRbW5NW0N63puMEHjyCg21o08lLaRacKDOvo5rkcJtearBgzOub/s87k6p0Luv42HFcETF5lCCLVL+/rAK0UJzWj0pBlymiQodSFm9sitp9f6tAUZgbcJ5E4XaAAlhWEsuV+UG7kuTFHFVO7+zWWleI5r8PdyhnfESDQ3S+I96iGx6LTqnlDcijWL/qdcTD0X5bxBuX5LI8aWOwS5QK0yexSKF/mJSbTWuhcVA1+WxHzQibTDJIczIeJ63nplt2beGhhZWV50p1hDrbkkMYuwSSG6IKj8xQVtotH109Z2h2VEVGlykYowjYUiVilvmuXQHOIQBwaYsjGw9W0mVqLQJ2N5q9sZiF80whXBFDT4jHS1fUFIbeMpMfUg0Bi2T5JZZWhG096p5Ce+7OfmBmQ85v1HrrwqBgt3egKxFIXzDHwC1j6Uw21vmEt8cw5Gh8FHR5IgUTj2eZGBxXrMZ25QVrjhCIs4UBo7AUTRuZp41FhTPgSmNupdN+HhwAtZkPly7TNfgAR/dVobM0houIUic0BfKd+FTLsW6J2FL7MHixAKF8S55Xn350HAUgvJpy08hl6hF 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)(39860400002)(136003)(396003)(346002)(376002)(366004)(451199021)(66556008)(66946007)(66476007)(4326008)(2616005)(38100700002)(38350700002)(86362001)(186003)(6506007)(26005)(1076003)(83380400001)(36756003)(52116002)(478600001)(6512007)(6666004)(6486002)(110136005)(41300700001)(8936002)(8676002)(4744005)(316002)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JaZH0S67/h3wn3iw6Gr1lt6bvu2JArEhz8yh8vr6eVtyOxoZesDPUHFaJmw9hxhLluVSlTpZQjzOOYAHHuM+z9KDr2dSkWzS1PcBZCxxWhL8IQxCT3IFnx28I1Kw1FopAEmOIAzUHFjxvuQUlw/lBXhQFPDl37+/vkscK5TkESONbiH5OHfOeTEg6iOZS31tXWjAl/WtRTqIOadX9gCs++8MhH6i+DHBiNnVOPABVW8ISKFhhAnf1oMoBisJLWI7ZXV89egZ/uUE4kPxF2CB7uWef9jS5Eq7HpS7QrJByJKc0CgKtffEheGsEYsyaDvlQaIMKjrxdZCMweLNnQydmN6za0F0OG+z0bs3avbKggwROXEoePKMzgmWjLj01+HoDz/l4bj46ZfD0OW+/mEgdkMz2e1fHWDTda6HeMPfb+MQ+iHNxNAXbwkXk+M0U9AkN7IT9IRc1bfrhdDK/AG/NV2dD2Ftd1jo8OZB6pmo/hcnrSZ+odJMorR1Stig2g9iSyO9KY2H2968jkRgm1CtIEsgsyPxZRRiwwBPpPCpRu5FJpG59Q3gpw7NKil7JuAEQFY6aMSBxEPmqYkYuIYPhZaRJev7SNsYn9T1PBgkyc62cCUVBkJnTpJEGW+fN39RusnGmOHFL3R1Qlu0NQv5csH+nK7Oynw5KZ3ndMs6UI4LViT2s6zD7p4O2v/icl9WsepCYWKoLPgvZ01dgxO7ETxAeUFLf8nqSblhsmiCUJ2RMug0d7dawq8IpE4gIETlBnW3613w0hFewyMUA4a1kyNK3OjLBbD+R9Tcrg3Gxrru0FJ+4/CAGWAbYL98XQR/dKE8c3Jwui7VIie9VdsoX6mddgPBGtU+RdE7CnzSv0/JtXf7K5/MngcmmYuvH2YziSZio1cJa0ruGi5X9AvFx4iSiaI+FDBl9NvDAPZTGFqUux9jQVufS6eMf6ecShhRnmwKF0KoyOlqZa4y3KaF3moUNvTEhsemEWefO2G5QabBN7LSMH4ZaMsf1Ck0WahqB/dBJRXaJrYKDv2HrvDBqBVtVid6/aN6GfgtpPqKrIdW+A7XDlO7OIPGyaGqWuQTnpIYbRIhd8e0nrYEPtvHJ6Q2/YKaldBmrqy5jQOMVFAiMqtTxEQPdmCqYc7+yYu0f0ozvUs3DNVyrCgjh4C3jj1xCqE2ERaJ6s/HjpSY64KYuQTFRTdfzf1NRwPq9huW3Ru+X1lChi4ikVpTfVkoVA26FDpfs6C3imFuaB3KTeHaf3EggMsObBeCaIeIG16sOVN3y4wJx+9JKBTABkoQuv7/nnIE2aeZJqzvew71CNPqNGQZvUx+1VRsO06SiMIsLayYWafNnujkexeVTG/GdMSpQg8YOJWL0g2QGEhFWedAJ51W9LFvJ4BDSLy3hW9Zg5TS7mgfpJC02bmGaanV8+ZJ1Cb0XW9jxGKbhsg1WTW+5D7COqQOKlj/LiZuU9129h0UmLkW+wpFZpruI8SLzTfmcW+izYJyzSWlDoRZgahGnNE+hl0bT0dEQLyB72YNSwlU3JAzUXURoWe7P7AM67x36cBuNsoSMfp0y4VfO82YidVXl0KIdvPtJZmoahsm X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2e5cac86-9d86-48d8-ecf8-08db7ed050b8 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 09:55:37.7632 (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: X1vvgthKqEeZs6i1OB4HYqX0QtiHok1kiLkE4bECteVE+Vz8ntTUhMIt5E73WjabcBuhxn8d4v+hPYwxT24aKg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR06MB6793 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 --- 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;