Commit f8075a8c authored by Sascha Herrmann's avatar Sascha Herrmann Committed by David S. Miller

at86rf230: remove unnecessary / dead code

In at86rf230_probe() lp was first set to dev->priv and a few lines later
dev->priv was set to lp again, without changing lp in between. The call
to ieee802154_unregister_device() before err_irq: was unreachable.
Signed-off-by: default avatarSascha Herrmann <sascha@ps.nvbi.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 07783f39
...@@ -838,7 +838,6 @@ static int at86rf230_probe(struct spi_device *spi) ...@@ -838,7 +838,6 @@ static int at86rf230_probe(struct spi_device *spi)
lp->spi = spi; lp->spi = spi;
dev->priv = lp;
dev->parent = &spi->dev; dev->parent = &spi->dev;
dev->extra_tx_headroom = 0; dev->extra_tx_headroom = 0;
/* We do support only 2.4 Ghz */ /* We do support only 2.4 Ghz */
...@@ -940,7 +939,6 @@ static int at86rf230_probe(struct spi_device *spi) ...@@ -940,7 +939,6 @@ static int at86rf230_probe(struct spi_device *spi)
return rc; return rc;
ieee802154_unregister_device(lp->dev);
err_irq: err_irq:
free_irq(spi->irq, lp); free_irq(spi->irq, lp);
flush_work(&lp->irqwork); flush_work(&lp->irqwork);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment