Message ID | 20230707095513.64224-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 v5csp3157817vqx; Fri, 7 Jul 2023 03:17:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlF6Z9OqY2/mZ+EPnodJdmoqDsLMU3cBtQztAsfnAPEmIDNDFcndrSJIur6cIBXaXniglvAh X-Received: by 2002:a05:6a20:258b:b0:12d:23ba:55da with SMTP id k11-20020a056a20258b00b0012d23ba55damr3868934pzd.59.1688725052249; Fri, 07 Jul 2023 03:17:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688725052; cv=pass; d=google.com; s=arc-20160816; b=fzPvjJvOfU4SwtQFzSCX3DzEp9ijqeRUcEQljTzY3qaFbxb3HalRKzNyipMTR4k12d DksiXDzkZTOzjlkdvNWFn3+FTsML059Tykopj5rbds8wB8kGZf7ZiuubYQ15T/gd3TA6 WGjbc5elQMMB2Pe1WoDzz/jnToll0H+31yVjnrq3ynidIDp/hfzfJr6eng2goRapd5rs C22JjPMZ7WlXQ9LnkQ46eiBN/RC5SxuUJQHEYBnO788NGR08FS99SCxEaz/BK0hy+8Ke jJjxqxpKy0KLiRo6yQJUI4iEkFLxbWWixWxofxk673QQyPmQQ3LTxPQb4PrsJ8Yf1OW2 DWcw== 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=Tk8Zx6CrKzQ3NZBVW+Uu0HKZvDqlMr64Zf0cUpm1qx8=; fh=+mYli40csuqYWk0Z8DaHn2Zt4yTlX+r+uVJkhXS46f4=; b=AQ5EwjQsemDwsr8VW3vKzr05l2/HGuXqxCHaAoAtSNWLpjNYL1AAw+x/mptZ0MjPWf xZ0Nfi/0/JlLlUzEzneu7W+GsU1ym8MfimP2NJyChXEcUyrjOVMR5D/kM0EpfB8HtF83 JaQsbiM/8k+yQhlQxsSl2JfgDFqXtosBZOYy5zoNLO3aZa9gZ0pguqOjBAnVg4HuN2j9 TFpthRbkgO376lCZPb2fPaN4LOpYPftXEHlVfC85CbPAAqBvrmuql3nryqQNUALIJzyh z2EKH9JkkHJMYJlG2drDeqLCwyhv3TfxGv50QX9oOt30xbqM6vMkUYNs8XCn3izBfEL8 38HQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=nR95alaB; 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 j3-20020a170903028300b001a97a54c3a2si3903091plr.197.2023.07.07.03.17.17; Fri, 07 Jul 2023 03:17:32 -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=nR95alaB; 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 S233038AbjGGJ4K (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Fri, 7 Jul 2023 05:56:10 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <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 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> 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: 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)(8676002)(4744005)(316002)(5660300002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vX+QZquJA0/RW1HNVXMJfA9ij5Xm0nZziKnc27C+iGmOu+mMjAHl8jyAu3Y4W7YT7mX8xxhV4ye1T6CAKP64ynFq+kiIQ7v/ATCIo0lx/RZQEp3hC4F/4NEJoCcJr+o9PUHHi5Np15cD++QWnjzmeC0sAZ9tJdLfqf5ehZpgRSQnx6mil1m/h9sOxMloN7PNiZh+nDvjJcBGc0tUoRjgovMTguqkhqSFmknVEXqn/mGZbay7Ieuve/o6VfrGAmCc255bCUJniuppQbjUQtOJ58sbT8zSCK/+9y2JUaLjc4aWkNTywqeLGXfU0VkVOoolUH4iARLOJI+okhTIpxIQ3LePW0XhP0Bnyk4Qk6UgNVhq6XvaqUkSUty8XyAE4W+fISGQ+xAqlJk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TK3Mo22srbaoJEunySiLBXAiW8oatWv5rTbgWRxb1zmChBrfgosWCX+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 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?1770756560204341273?= X-GMAIL-MSGID: =?utf-8?q?1770756560204341273?= |
Series |
[v2,01/11] ata: ahci_octeon: Convert to devm_platform_ioremap_resource()
|
|
Commit Message
李扬韬
July 7, 2023, 9:55 a.m. UTC
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 <frank.li@vivo.com>
---
drivers/ata/sata_rcar.c | 2 --
1 file changed, 2 deletions(-)
Comments
On 7/7/23 12:55 PM, Yangtao Li wrote: > 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. No, that patch still allows returning IRQ0, actually you need: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ce753ad1549cbe9ccaea4c06a1f5fa47432c8289 > 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 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)