Message ID | 20230707095513.64224-5-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp3155320vqx; Fri, 7 Jul 2023 03:12:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlGn6e/YLzjKWtWbYYLIV617NZE1zH3s01b6abSGY3R7jl0NfyoqZg6t87VDqwXmppqcC8yY X-Received: by 2002:a17:902:b081:b0:1b8:92fc:7429 with SMTP id p1-20020a170902b08100b001b892fc7429mr4126629plr.53.1688724762431; Fri, 07 Jul 2023 03:12:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688724762; cv=pass; d=google.com; s=arc-20160816; b=BH9THcDlfEa5tnXa+mNuG3C3Vo550a0M/33mEnw8E70zAnxK33LqGNbLcAZn8b732G vkJ8rlUWhnCZpwQV0ij2+JAYWAhRRhEyJ5kJpk92dyUWf+m9o6g8CIhM0+4u+LBL17mA iQXeiLTWaxcMtepoJsAuOEX17qhdi30PvC6tzXhcpprkNL3sSLhDmaD4+eIzPy6rHqdR ejXZrTf1rdZQoxsPfWz3IafRdUO8coSBCUzGvXTqWBNKBLSALAo/LmfT9dEChDwMpj53 E6naqciiOqJK5NKnzjvNM0l1xEycT4CJPXV6K6YHJzj0hiYKJnNNp2D4fAXApYcQGwU4 RzcQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eZ6EW3nF9FBgSOGqtMO7sA+4CxK7678/Ifrog9feFnA=; fh=+mYli40csuqYWk0Z8DaHn2Zt4yTlX+r+uVJkhXS46f4=; b=fopfsaKKj2zzWtpU4Lv+mmyRTwb84OIATvwPivXVnQNW3YRMooGBhgiFSsB1Bzl6DG VhHA6Q0irWqA/8miYs20GoQcM7M6lG1c/rCGJYHd9mOHnkfmXFgxHidPYXItGAv9kM5T W6IxDRXnsqAlVPRQntJxvGN5cSJd5BWIL5JhaF4htYGnK5QSvPGmoal05qk6JxnOH+JG 1VclUpYCfEpT2KiPxQpCUkiXyADttyog0YeZkLcze+ewfemG+fWQmftR683prnL9XRQg Nthuj6XdJ1bn+W71Raw6zYyB9prC33LX9XRp4qC2v6uKLjETccAbU+/6YXDO36LS7YLc cSLQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=FRoNLPKD; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ku8-20020a170903288800b001b88f151c9esi3124665plb.123.2023.07.07.03.12.28; Fri, 07 Jul 2023 03:12:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=FRoNLPKD; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233033AbjGGJ4H (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Fri, 7 Jul 2023 05:56:07 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <frank.li@vivo.com> To: Sergey Shtylyov <s.shtylyov@omp.ru>, Damien Le Moal <dlemoal@kernel.org> Cc: Yangtao Li <frank.li@vivo.com>, 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> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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+C0bHhPoGerWcLq3Z8ZqoE5siTzICsIoZO4qjA4VLC8ab+uVPoZroR/TlqT6S26qVNbxkXd6BSyDQA59lKxwI0nCQNK2QYSPE5ux1HmaRFEcfe2FdhlaenN6DnGL/Jzgar4sUB25g7Z9Ic87+4TsKUscpIzI/FedTovpw9fyFndIaK6V2K7CDxXc8J2wSZpopIzJRKjOOD7G6up8gyng2j17qk1WENUXMpDsOIDE1XV5hA/R88QOWfp6oz2V9orFdie2oasMbZMVjdfGXLCvagHGOd68/PNsQphZiYqdP1DyHsl5QaYzwp3elNjI8y/bB+P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CqhBptomqnmcx9zG79N9QhpF36OjzwqQRFQpgSxOE/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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770756256510630869?= X-GMAIL-MSGID: =?utf-8?q?1770756256510630869?= |
Series |
[v2,01/11] ata: ahci_octeon: Convert to devm_platform_ioremap_resource()
|
|
Commit Message
李扬韬
July 7, 2023, 9:55 a.m. UTC
There is no need to initialize the variable ret, let's drop it.
Signed-off-by: Yangtao Li <frank.li@vivo.com>
---
drivers/ata/sata_rcar.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On 7/7/23 12:55 PM, Yangtao Li wrote: > There is no need to initialize the variable ret, let's drop it. Drop what, the variable? :-) > Signed-off-by: Yangtao Li <frank.li@vivo.com> Aside from that: Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru> [...] MBR, Sergey
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)