Skip to content

Commit

Permalink
at86rf230: remove unnecessary / dead code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sascha Herrmann authored and David S. Miller committed Apr 8, 2013
1 parent 07783f3 commit f8075a8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ieee802154/at86rf230.c
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,6 @@ static int at86rf230_probe(struct spi_device *spi)

lp->spi = spi;

dev->priv = lp;
dev->parent = &spi->dev;
dev->extra_tx_headroom = 0;
/* We do support only 2.4 Ghz */
Expand Down Expand Up @@ -940,7 +939,6 @@ static int at86rf230_probe(struct spi_device *spi)

return rc;

ieee802154_unregister_device(lp->dev);
err_irq:
free_irq(spi->irq, lp);
flush_work(&lp->irqwork);
Expand Down

0 comments on commit f8075a8

Please sign in to comment.