From: Wan Jiabing <wanjiabing@vivo.com>
To: Wolfram Sang <wsa@kernel.org>, Zhiqi Song <songzhiqi1@huawei.com>,
Tian Tao <tiantao6@hisilicon.com>,
Florian Fainelli <f.fainelli@gmail.com>,
Wan Jiabing <wanjiabing@vivo.com>,
Sudeep Holla <sudeep.holla@arm.com>,
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 [thread overview]
Message-ID: <20211102021229.18501-1-wanjiabing@vivo.com> (raw)
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 <wanjiabing@vivo.com>
---
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
next reply other threads:[~2021-11-02 2:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-02 2:12 Wan Jiabing [this message]
2021-11-02 9:01 ` [PATCH] i2c: xgene-slimpro: Fix inconsistent IS_ERR and PTR_ERR Sudeep Holla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211102021229.18501-1-wanjiabing@vivo.com \
--to=wanjiabing@vivo.com \
--cc=f.fainelli@gmail.com \
--cc=jiabing.wan@qq.com \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=songzhiqi1@huawei.com \
--cc=sudeep.holla@arm.com \
--cc=tiantao6@hisilicon.com \
--cc=wsa@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox