Message ID | 20230710024550.59544-6-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 v5csp4738791vqx; Sun, 9 Jul 2023 19:59:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlGX3z95ono5Uke3b84uBYI8sTXHiEmr2kQrYlQ+611kO9pzYTtRpxdlabTM/AEcg4PD9eXx X-Received: by 2002:a05:6a20:431a:b0:131:9979:d09c with SMTP id h26-20020a056a20431a00b001319979d09cmr3248352pzk.23.1688957942444; Sun, 09 Jul 2023 19:59:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688957942; cv=pass; d=google.com; s=arc-20160816; b=RA2xomCD5jfXX2RqwHG6/Nosc67QTE0z4xO8RaMIEKg6PInX35HqgPnQoxeV7LLqwA DmifGFR0Xhp5wfXQUFSAdnRqZmPO8jY4fU6GMaiTNGU5X1sp7t4Nv72gpQNRqZI5h7V3 WKlTMEr8ERRAu6fCU5vPP6oj4hVjqh2R6H4jXfTk2Vyo8y+B15i1h06tmvw9srpg2uZ3 Tal/Ub2BUvznorRIRraT9M7K9d+xYISiv1Nyn//vdksENa2e5GFFldlWxNELdl3TkMvz HaUYYD9BnfUfJHCo6BiEeJeRtbVqK7kKt49FCCnjgPYzYaR8ZeGLbjJYEOVh2+GsPveA KwNA== 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=t6EOzR/dAT7xGS36MAb7FJ0H83BNPr5dOFOezSZrraI=; fh=+mYli40csuqYWk0Z8DaHn2Zt4yTlX+r+uVJkhXS46f4=; b=XfWJTL4G/gmmGZ+llQxzekuc6JkzWHUplgDFmCq6ZrA/+6QPe2c/QLxLrE9eRgHQyJ qzGkN1WRKjZ0SJG11/PD2x4nPtSSV4QU/Tz3CMFVt6Qnh7LntwB9L0t+qSKth9crDAlM h7BybmHWhL//6H7dM7tL1Edb+X3OD50Vvu3fjoNkfWX33kESFr4kkiBkdZfzPFpIjH5e GFDFP2XghmSDjUO+3yYC/9MJkxH2NGKFC+UL9+nVqRlpJBqYlrnBnvH4KC+LLbXlXpti lbTkvq2gs+EG7q4uWb6GS/qAFtwS/E0l1gitP67JD7iQ1RCJNIeawa23oAhzNDNhxzjU H/DQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=hqild5Jn; 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 x22-20020aa784d6000000b00682c1cd974asi7568596pfn.379.2023.07.09.19.58.49; Sun, 09 Jul 2023 19:59:02 -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=hqild5Jn; 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 S230379AbjGJCqa (ORCPT <rfc822;ybw1215001957@gmail.com> + 99 others); Sun, 9 Jul 2023 22:46:30 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <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 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> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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)(38350700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: y64ZIyi77PkLrjDP/tq5hjBKw2zGdOgjMOFlh2gQbzXVdtYzG2OUH4eQzsDEXXEYm+wZNFkudjfxvbS3rht8f5+LN89H7Pbz2J2fcj73Fe7PtZKquROVS867ADl4hjXrV++S0JSBSplXvLFPxglpBJ8jZqTGCUV+9elfPdXwU7gulSLI8PUGnXLWo/1fQmsHrG7ub/vOWQ2zi6ilenRt5JMLAQ+vGi8twtUN8KW6ti6xGH8ZckfM2tl37wz80qRuMsEMx/JKqb6wi/EiBYHGnIO8fyQzREo86CXUFzEUsFGe2FyU2E7GQeaF8BtYyo0XBBhIXTh/oER9h7YjeaXjuxrMl4o+VHfXqy3mqsesavvI+IkDEd4EZPcT7P5CagOBskJBczM+qtvI2CHs0+Ofsxc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+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 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 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: INBOX X-GMAIL-THRID: 1771000763341239630 X-GMAIL-MSGID: 1771000763341239630 |
Series |
[v3,01/11] ata: ahci_octeon: Convert to devm_platform_ioremap_resource()
|
|
Commit Message
李扬韬
July 10, 2023, 2:45 a.m. UTC
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 <frank.li@vivo.com> Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru> --- drivers/ata/sata_rcar.c | 2 -- 1 file changed, 2 deletions(-)
Comments
On Mon, Jul 10, 2023 at 4:47 AM Yangtao Li <frank.li@vivo.com> wrote: > 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 <frank.li@vivo.com> > Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Gr{oetje,eeting}s, Geert
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)