Merge tag 'ieee802154-for-davem-2019-11-13' of git://git.kernel.org/pub/scm/linux...
[sfrench/cifs-2.6.git] / drivers / net / ieee802154 / cc2520.c
index 43506948e444ddb498c925ee0b3b152d2ab542e2..89c046b204e0c0181bbaf4f15a9c11cb7fa39fdb 100644 (file)
@@ -218,7 +218,6 @@ static int
 cc2520_cmd_strobe(struct cc2520_private *priv, u8 cmd)
 {
        int ret;
-       u8 status = 0xff;
        struct spi_message msg;
        struct spi_transfer xfer = {
                .len = 0,
@@ -236,8 +235,6 @@ cc2520_cmd_strobe(struct cc2520_private *priv, u8 cmd)
                 priv->buf[0]);
 
        ret = spi_sync(priv->spi, &msg);
-       if (!ret)
-               status = priv->buf[0];
        dev_vdbg(&priv->spi->dev,
                 "buf[0] = %02x\n", priv->buf[0]);
        mutex_unlock(&priv->buffer_mutex);