From: Jingoo Han Date: Fri, 18 Oct 2013 00:22:22 +0000 (+0900) Subject: net: bna: remove unnecessary pci_set_drvdata() X-Git-Tag: v3.13-rc1~105^2~180^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8283e552d11e3f1c447b0c3125fa8b28acbd874;p=kernel%2Fkernel-generic.git net: bna: remove unnecessary pci_set_drvdata() The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c index b78e69e..f276433 100644 --- a/drivers/net/ethernet/brocade/bna/bnad.c +++ b/drivers/net/ethernet/brocade/bna/bnad.c @@ -3212,7 +3212,6 @@ bnad_init(struct bnad *bnad, bnad->bar0 = ioremap_nocache(bnad->mmio_start, bnad->mmio_len); if (!bnad->bar0) { dev_err(&pdev->dev, "ioremap for bar0 failed\n"); - pci_set_drvdata(pdev, NULL); return -ENOMEM; } pr_info("bar0 mapped to %p, len %llu\n", bnad->bar0,