diff options
author | Sascha Herrmann <sascha@ps.nvbi.de> | 2013-04-04 07:02:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-04-08 12:00:16 -0400 |
commit | f8075a8c946d11e17bb5d837e2a032206f26ec70 (patch) | |
tree | 7dc87762f7f63dab23507ca3a2a45df3b1e331f5 /drivers/net/ieee802154 | |
parent | 07783f39e1433574cff20ca774684c3921162b59 (diff) |
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: Sascha Herrmann <sascha@ps.nvbi.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ieee802154')
-rw-r--r-- | drivers/net/ieee802154/at86rf230.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 6e88eab33f5c..fc315ddea61c 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at86rf230.c | |||
@@ -838,7 +838,6 @@ static int at86rf230_probe(struct spi_device *spi) | |||
838 | 838 | ||
839 | lp->spi = spi; | 839 | lp->spi = spi; |
840 | 840 | ||
841 | dev->priv = lp; | ||
842 | dev->parent = &spi->dev; | 841 | dev->parent = &spi->dev; |
843 | dev->extra_tx_headroom = 0; | 842 | dev->extra_tx_headroom = 0; |
844 | /* We do support only 2.4 Ghz */ | 843 | /* We do support only 2.4 Ghz */ |
@@ -940,7 +939,6 @@ static int at86rf230_probe(struct spi_device *spi) | |||
940 | 939 | ||
941 | return rc; | 940 | return rc; |
942 | 941 | ||
943 | ieee802154_unregister_device(lp->dev); | ||
944 | err_irq: | 942 | err_irq: |
945 | free_irq(spi->irq, lp); | 943 | free_irq(spi->irq, lp); |
946 | flush_work(&lp->irqwork); | 944 | flush_work(&lp->irqwork); |