From: Ye Bin <yebin10@huawei.com>
To: <heikki.krogerus@linux.intel.com>, <gregkh@linuxfoundation.org>,
<linux-usb@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: Ye Bin <yebin10@huawei.com>, Hulk Robot <hulkci@huawei.com>
Subject: [PATCH] usb: typec: remove unused variable ‘ret’ in typec_partner_set_pd_revision
Date: Thu, 4 Feb 2021 09:24:30 +0800 [thread overview]
Message-ID: <20210204012430.3686636-1-yebin10@huawei.com> (raw)
Fix follow warning:
drivers/usb/typec/class.c:763:6: warning: unused variable ‘ret’ [-Wunused-variable]
int ret;
^~~
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Ye Bin <yebin10@huawei.com>
---
drivers/usb/typec/class.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/usb/typec/class.c b/drivers/usb/typec/class.c
index b6ceab3dc16b..1c2d50e016e2 100644
--- a/drivers/usb/typec/class.c
+++ b/drivers/usb/typec/class.c
@@ -760,8 +760,6 @@ EXPORT_SYMBOL_GPL(typec_partner_set_identity);
*/
int typec_partner_set_pd_revision(struct typec_partner *partner, u16 pd_revision)
{
- int ret;
-
if (partner->pd_revision == pd_revision)
return 0;
--
2.25.4
next reply other threads:[~2021-02-04 1:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-04 1:24 Ye Bin [this message]
2021-02-04 6:22 ` [PATCH] usb: typec: remove unused variable ‘ret’ in typec_partner_set_pd_revision Greg KH
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=20210204012430.3686636-1-yebin10@huawei.com \
--to=yebin10@huawei.com \
--cc=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=hulkci@huawei.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.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