summaryrefslogtreecommitdiffstats
path: root/drivers/misc/ti-st
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-07-03 09:32:49 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-03 13:01:48 +0200
commit53e44782e2302f6483b34539f0c3efbf5c6f9f37 (patch)
treee5c07ff08ee1059d182b363fb6cd48345b7472a6 /drivers/misc/ti-st
parentsgi-xp: remove redundant pointers ch and rp (diff)
downloadlinux-53e44782e2302f6483b34539f0c3efbf5c6f9f37.tar.xz
linux-53e44782e2302f6483b34539f0c3efbf5c6f9f37.zip
misc: ti-st: remove redundant variable 'type'
Variable type is being assigned but is never used hence it is redundant and can be removed. Cleans up clang warning: warning: variable 'type' set but not used [-Wunused-but-set-variable] Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/ti-st')
-rw-r--r--drivers/misc/ti-st/st_kim.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/misc/ti-st/st_kim.c b/drivers/misc/ti-st/st_kim.c
index 5ec3f5a43718..28fba5b3625e 100644
--- a/drivers/misc/ti-st/st_kim.c
+++ b/drivers/misc/ti-st/st_kim.c
@@ -138,7 +138,7 @@ static void kim_int_recv(struct kim_data_s *kim_gdata,
const unsigned char *data, long count)
{
const unsigned char *ptr;
- int len = 0, type = 0;
+ int len = 0;
unsigned char *plen;
pr_debug("%s", __func__);
@@ -183,7 +183,6 @@ static void kim_int_recv(struct kim_data_s *kim_gdata,
case 0x04:
kim_gdata->rx_state = ST_W4_HEADER;
kim_gdata->rx_count = 2;
- type = *ptr;
break;
default:
pr_info("unknown packet");