From: Sascha Herrmann Date: Thu, 4 Apr 2013 11:02:00 +0000 (+0000) Subject: at86rf230: remove unnecessary / dead code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f8075a8c946d11e17bb5d837e2a032206f26ec70;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 6e88eab33f5..fc315ddea61 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) lp->spi = spi; - dev->priv = lp; dev->parent = &spi->dev; dev->extra_tx_headroom = 0; /* We do support only 2.4 Ghz */ @@ -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);