summaryrefslogtreecommitdiffstats
path: root/drivers/fsi
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2018-02-20 14:48:43 +1030
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2018-06-12 14:04:21 +1000
commite212ab47bd029466ad758a24831e3046a34ebda1 (patch)
treec063922ed022c9ae74f0f71978eeab8f5c7891dd /drivers/fsi
parent918da95176beb743ff47b3bbfb0a4ee420658a95 (diff)
downloadlinux-0-day-e212ab47bd029466ad758a24831e3046a34ebda1.tar.gz
linux-0-day-e212ab47bd029466ad758a24831e3046a34ebda1.tar.xz
fsi: gpio: Remove unused 'id' variable
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Tested-by: Joel Stanley <joel@jms.id.au>
Diffstat (limited to 'drivers/fsi')
-rw-r--r--drivers/fsi/fsi-master-gpio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/fsi/fsi-master-gpio.c b/drivers/fsi/fsi-master-gpio.c
index 2a49b167effe5..20b334f1827dd 100644
--- a/drivers/fsi/fsi-master-gpio.c
+++ b/drivers/fsi/fsi-master-gpio.c
@@ -270,7 +270,7 @@ static int read_one_response(struct fsi_master_gpio *master,
uint8_t data_size, struct fsi_gpio_msg *msgp, uint8_t *tagp)
{
struct fsi_gpio_msg msg;
- uint8_t id, tag;
+ uint8_t tag;
uint32_t crc;
int i;
@@ -295,7 +295,6 @@ static int read_one_response(struct fsi_master_gpio *master,
/* Read slave ID & response tag */
serial_in(master, &msg, 4);
- id = (msg.msg >> FSI_GPIO_MSG_RESPID_SIZE) & 0x3;
tag = msg.msg & 0x3;
/* If we have an ACK and we're expecting data, clock the data in too */