fsi: gpio: Remove unused 'id' variable
authorAndrew Jeffery <andrew@aj.id.au>
Tue, 20 Feb 2018 04:18:43 +0000 (14:48 +1030)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 12 Jun 2018 04:04:21 +0000 (14:04 +1000)
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>
drivers/fsi/fsi-master-gpio.c

index 2a49b167effe53ceaabe391c0c3595932e96350a..20b334f1827dd90b583618dc4e31683f9a334ea5 100644 (file)
@@ -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 */