diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-10-23 09:06:18 +0200 |
---|---|---|
committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2019-10-28 14:25:46 +0100 |
commit | 693463e8340d55af4baed3b0721f9d8f5350a18a (patch) | |
tree | 143fbdc4ad8d88d60bda7d9a1e0d545cf014d65c /drivers/net/ieee802154 | |
parent | net: openvswitch: return an error instead of doing BUG_ON() (diff) | |
download | linux-693463e8340d55af4baed3b0721f9d8f5350a18a.tar.xz linux-693463e8340d55af4baed3b0721f9d8f5350a18a.zip |
ieee802154: remove set but not used variable 'status'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/net/ieee802154/cc2520.c:221:5: warning:
variable status set but not used [-Wunused-but-set-variable]
It is never used, so can be removed.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r-- | drivers/net/ieee802154/cc2520.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c index 0c89d3edf901..bd0ec39d3fb0 100644 --- a/drivers/net/ieee802154/cc2520.c +++ b/drivers/net/ieee802154/cc2520.c @@ -223,7 +223,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, @@ -241,8 +240,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); |