lkml.org 
[lkml]   [2021]   [Feb]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] input: touchscreen: Remove unneeded variable: "rc"
Date
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
\
 
 \ /
  Last update: 2021-02-25 05:34    [W:0.038 / U:0.944 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site