linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: dingsenjie@163.com
To: dmitry.torokhov@gmail.com, fery@cypress.com
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org,
	dingsenjie <dingsenjie@yulong.com>
Subject: [PATCH] input: touchscreen: Remove unneeded variable: "rc"
Date: Thu, 25 Feb 2021 12:29:39 +0800	[thread overview]
Message-ID: <20210225042939.11100-1-dingsenjie@163.com> (raw)

From: dingsenjie <dingsenjie@yulong.com>

Remove unneeded "rc" variable in the cyttsp4_core.c.

Signed-off-by: dingsenjie <dingsenjie@yulong.com>
---
 drivers/input/touchscreen/cyttsp4_core.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/input/touchscreen/cyttsp4_core.c b/drivers/input/touchscreen/cyttsp4_core.c
index dccbcb9..93d3c77 100644
--- a/drivers/input/touchscreen/cyttsp4_core.c
+++ b/drivers/input/touchscreen/cyttsp4_core.c
@@ -544,7 +544,6 @@ static int cyttsp4_si_get_btn_data(struct cyttsp4 *cd)
 	int num_defined_keys;
 	u16 *key_table;
 	void *p;
-	int rc = 0;
 
 	if (si->si_ofs.num_btns) {
 		si->si_ofs.btn_keys_size = si->si_ofs.num_btns *
@@ -581,13 +580,13 @@ static int cyttsp4_si_get_btn_data(struct cyttsp4 *cd)
 			si->btn[btn].enabled = true;
 		}
 
-		return rc;
+		return 0;
 	}
 
 	si->si_ofs.btn_keys_size = 0;
 	kfree(si->btn);
 	si->btn = NULL;
-	return rc;
+	return 0;
 }
 
 static int cyttsp4_si_get_op_data_ptrs(struct cyttsp4 *cd)
-- 
1.9.1


                 reply	other threads:[~2021-02-25  4:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20210225042939.11100-1-dingsenjie@163.com \
    --to=dingsenjie@163.com \
    --cc=dingsenjie@yulong.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=fery@cypress.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@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;
as well as URLs for NNTP newsgroup(s).