Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3704020pxb; Mon, 1 Nov 2021 19:15:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwElChWE8y6jOl32gEuKkE/Qlfs/ZKXUwIFYG6aERcZm95sbgTZjd2jwUmz1hj1vbg4dDvS X-Received: by 2002:a05:6402:5ca:: with SMTP id n10mr46757905edx.216.1635819350665; Mon, 01 Nov 2021 19:15:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1635819350; cv=pass; d=google.com; s=arc-20160816; b=gUO5IfNDhSksqTtrXoCyLWirKbpdCVUlIbg9Hru007T47DUMiFhnCgJThKMxwMR3tc eP+kBs577/r4SrsEjCxciCfgaofskxFJLXY0X4Hf+NqvC5rCFtONwYXPlP80K3XovfL5 z1QHafkFuV1Hgl8BA8iuyBhrsnaxD/QXeAXlqFRRLeIFXFEzFWbHh/kPqmD+N/Vjok/A tUVQohXRhcxq4PvB5YJboYzlhxDi1zC03J4neoRRLZUnFKqzp+lKqKGmJHlDA+AK5LQ5 4A/HJ8FBYYH24/2bYVP+05/gedLIQ+DYt0l07mH3ALRJUktK56ra9cWh73acbB2dnevi PeTQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=XvjTGMQKSzQATqfp8yANf+cVUtzQtfm/YGBqM6RJsOc=; b=IB/NuMKY/Y4whtk4IxRzu+RY+6iI2BedyaPGjlW0FIyayIef4TbP4COap5UhlPbBa+ L10hxFhvYIRBzKvUxxhXAn/chUklNgc0E0Lerx/8T5vavFkWxYv77xxYRpMQ6v8+uP3J ohpLibc99fOm9Et92g5MVdtyE49ncTScjgF2a83u0ZKOZ3UwOaten02awiYsv5g+42kp 863kdKDETW9q/jSw2OD7mN+C7+GSGNpwbvHotxkwzxriAx5P7QjrW79AfpV9rBXhOFsW a+LtFuqUyI+oobt7Y0deWsdNaxZHT/AiaFpj1IoxKftOLZTcJ2zKDn9JjtIlKmDaalMx aE4Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo0.onmicrosoft.com header.s=selector2-vivo0-onmicrosoft-com header.b=SF+A0U7R; 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 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a24si25581279edn.116.2021.11.01.19.15.23; Mon, 01 Nov 2021 19:15:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo0.onmicrosoft.com header.s=selector2-vivo0-onmicrosoft-com header.b=SF+A0U7R; 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 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229541AbhKBCQC (ORCPT + 99 others); Mon, 1 Nov 2021 22:16:02 -0400 Received: from mail-eopbgr1300135.outbound.protection.outlook.com ([40.107.130.135]:46176 "EHLO APC01-HK2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229458AbhKBCQB (ORCPT ); Mon, 1 Nov 2021 22:16:01 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LAqg7rEQSqr88HH8/LcXhMv8amYA+IY+xVh/meQ/x9+N0Km9ftnkn9ifpa0riIolepSeb7lMd+o2Rgo+h+SDJZM/jmAHDffB3vGj1J31+5usF7pF/Ua9j4nytfv1pKpOdKOd5nMIS9L6ToPNIvaWdwjmlkiThFsdqkdzE/l8OdWYdYs3hRP3rhETuXc8HTyD7g0jdCY7rOl1nxxBSmRoRfh7RuHAjmqaGt9JzhJ2XCEZ+R9eC8o+VilBgDZLQqhHX8nQIygZkHfEGWZA4miKR0idLfzNoQDGIp5c6Yity45qfiVDGGQs5PwByToWw+LmsBBb0aI96+EfGHCZKnYLaQ== 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=XvjTGMQKSzQATqfp8yANf+cVUtzQtfm/YGBqM6RJsOc=; b=L9SdJeavKInJD/WGj/wyVpJvNk9QgZ1KhLrDsAsaYIrWIPRXe/PGQDiUCUO77uX54BuAkSJEGoFsLMCjHy2UPrFfrxpYrcnE5uoP3qIaN/boG8uKKqfELL8uBBY6w0fWdYkgEm3QHUQbFFUW0DbzodXnIo0sw92Hx/DiHxm8Jc9K4RttLjLoIPXKS/DchXdOyzcSanWcPoC9+m+7biAJj7bIDvKY1iZJWNLX/CDQIsBAVm/odUAasWFKDSMja9WprheIn0KDULXMVYRttK1I4r7K8ztwlft3qxbDmWL+Jh25h461EeEOXuWQHty1XIVko/DDdYaFL8fsOsVbSspWIg== 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=vivo0.onmicrosoft.com; s=selector2-vivo0-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XvjTGMQKSzQATqfp8yANf+cVUtzQtfm/YGBqM6RJsOc=; b=SF+A0U7RsLcXlacyknaGGkZ59HRYQFtnVeCfmyg2Q0otop8Tn9aQ2WOMtpUeHqxIxqbZCC3BDR1wWZ6G1IngEp3AdG7nozXWj6Jqi82XP62IZ+oXhirLCQvwb45szpvtNq+XBwtks0i5BxIknpO5dIMJRozIBiLxmnaFvIVDBPE= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=vivo.com; Received: from SG2PR06MB3367.apcprd06.prod.outlook.com (2603:1096:4:78::19) by SG2PR06MB2107.apcprd06.prod.outlook.com (2603:1096:4:c::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4649.18; Tue, 2 Nov 2021 02:13:23 +0000 Received: from SG2PR06MB3367.apcprd06.prod.outlook.com ([fe80::fc12:4e1b:cc77:6c0]) by SG2PR06MB3367.apcprd06.prod.outlook.com ([fe80::fc12:4e1b:cc77:6c0%6]) with mapi id 15.20.4649.019; Tue, 2 Nov 2021 02:13:17 +0000 From: Wan Jiabing To: Wolfram Sang , Zhiqi Song , Tian Tao , Florian Fainelli , Wan Jiabing , Sudeep Holla , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Cc: jiabing.wan@qq.com Subject: [PATCH] i2c: xgene-slimpro: Fix inconsistent IS_ERR and PTR_ERR Date: Mon, 1 Nov 2021 22:12:27 -0400 Message-Id: <20211102021229.18501-1-wanjiabing@vivo.com> X-Mailer: git-send-email 2.20.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: HK2P15301CA0012.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::22) To SG2PR06MB3367.apcprd06.prod.outlook.com (2603:1096:4:78::19) MIME-Version: 1.0 Received: from localhost.localdomain (218.213.202.190) by HK2P15301CA0012.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.2 via Frontend Transport; Tue, 2 Nov 2021 02:13:16 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f98d84f1-b3bf-4179-4892-08d99da65540 X-MS-TrafficTypeDiagnostic: SG2PR06MB2107: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:142; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8zdE7DKY84nybxdulPlc7niUWiJpwo+9RXqH5e6esF/6xx3H4g0qHRDPdtvkiYfyLUqKeZUt6VAPndKq6EwXQo5Cjay1dyHAjGtFDxmpOHtPjgpurVPeAaJhKVGRRhFjRs0Mi8vUwiJ86GMeCrIqbZsOWzODG8LNeN5Dh3dUzTShOpxzWIJSoJb3X5GRUjxJkihBB4kTPMEpMG/6Yd5o0WP5Pt3sr7rB2MkVYS7StAhE4ZQE8SAJELmVy1dbIVvWdew8A7OkA4sbIUg+taOrjhjKc18wcQJac6SyxOh9FB2s2CvvSTtuEY7z3/CLFoS4AqqQKuRXCjJqWibtRVNtuyzF3CHXPltPFcuqM8DG3TbWzZLcaV0/xpKNlEiS4Cz9ybV/fu1suRNZCpiQcJl08BfXiW0Qm9Lx+JF25oo3ECwhsvBwboXSFopWdTJo6CeAVQp9AD/TV9uxZaD3ykv5+iRW8Bbpvy8pka9uTAM39NYh3q19UAOYrExAdQbzzAUUe5+W8MJxa6qEuoL1BON+hMj0KyW0HNY9s1klOTrjIHQ8khX6KOIPrSTEcbd894FdKzCYdelZraxAQFieFYY7QYlxRSpsTlM3quZ+PF0QRplCAON0Mg4yeHvJREUmrE24Arij9oIBJKQJpuiF0iGqEnXXIACkE37aEshLEAdcpQY1U89hhwMUTZZ+rTioJP4UutnujzK1PIH1u36O2lUPrA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SG2PR06MB3367.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(4744005)(5660300002)(66946007)(66476007)(66556008)(1076003)(2616005)(956004)(2906002)(52116002)(36756003)(186003)(38100700002)(8676002)(6486002)(86362001)(26005)(6666004)(6512007)(316002)(38350700002)(4326008)(6506007)(8936002)(110136005)(508600001)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?eXGk9oHig4l6TYONZ3twAFYJBu85UhUojjvpZwsaR46x6qBhGjdaVMXFKpcG?= =?us-ascii?Q?0oHb/BUWnHh0OwJ37VpKJ1FS9KGn+oyLR02v9aK5G1TIeYhRgG11hlakybvS?= =?us-ascii?Q?r2uI0Ei9j5uWBC40QymW4mXRChlRRkNzC13qVdcM9ZtLV7Hb0Dn67axrYh/3?= =?us-ascii?Q?YK7MtLJcSc+OGH/BwGF6aChAlPlWjdRLohqRSbPGQVHvTVzXRT5WRcaNix4o?= =?us-ascii?Q?PCz139nuXKTaGj9yw7qB0qfhfB60f+gTEtUIPgiLKFIYW6gAkzB8mdGcsDT/?= =?us-ascii?Q?QaHHurNThYQFldw2ifAe79/+ddOzL8NKzHvyPT9tkPqwZyJC/hnV+Uq07gYG?= =?us-ascii?Q?rPyEecAjFR3sA/JRcoIrf4gwermsP7yc1tx6PrTcQSoekt/n363LQ2tdD8Yk?= =?us-ascii?Q?XFsmmr/RBwLEbwSJmPhPjy0dc+2m9S7eARYNihIks7O+iuLJw9cx/4lV0PRw?= =?us-ascii?Q?M+ydxIxpJkQ5XWxOCne2t0dbzJ0U5TIxA6wfTTsmMah6dHamL3ireeTYkz86?= =?us-ascii?Q?tSt3+FpBr+RWqm4OtYtAgJLSgJgX5fzozPoWyn7icZY1o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3eMWxq1++9l+g31pRs0k71EqFg5hFxQXOpsHt4YaUwPx7HxgPb6r2HQ?= =?us-ascii?Q?PtB98n6N4DBwu88pS98Q4X/QjcfswHY4jpLUgKqRP5gDjsKmV+AHlb605TgQ?= =?us-ascii?Q?3JdwvXBB3omDFHn5fVB0myegL7DMvjTcXK7XTkrEfI/Mbz4KCtSEu59CM7M7?= =?us-ascii?Q?OVCPvrbz2d9dPow2i3eDpIY=3D?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: f98d84f1-b3bf-4179-4892-08d99da65540 X-MS-Exchange-CrossTenant-AuthSource: SG2PR06MB3367.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2021 02:13:17.2242 (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: 358fLQjj9DHL2WzIQICbi1adbBHZhJ1HJsDzhUH8ohhOzACGO3nXg6Lc6pMAT9VmcmNXMc6Z9jUdM4J/PDeQhQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB2107 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix following coccicheck warning: ./drivers/i2c/busses/i2c-xgene-slimpro.c:488:6-12: inconsistent IS_ERR and PTR_ERR on line 490. Signed-off-by: Wan Jiabing --- drivers/i2c/busses/i2c-xgene-slimpro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c b/drivers/i2c/busses/i2c-xgene-slimpro.c index 1a19ebad60ad..63259b3ea5ab 100644 --- a/drivers/i2c/busses/i2c-xgene-slimpro.c +++ b/drivers/i2c/busses/i2c-xgene-slimpro.c @@ -487,7 +487,7 @@ static int xgene_slimpro_i2c_probe(struct platform_device *pdev) pcc_chan = pcc_mbox_request_channel(cl, ctx->mbox_idx); if (IS_ERR(pcc_chan)) { dev_err(&pdev->dev, "PCC mailbox channel request failed\n"); - return PTR_ERR(ctx->pcc_chan); + return PTR_ERR(pcc_chan); } ctx->pcc_chan = pcc_chan; -- 2.20.1