From: Jingoo Han Date: Mon, 9 Dec 2013 03:26:44 +0000 (+0900) Subject: net: bna: remove unnecessary pci_set_drvdata() X-Git-Tag: upstream/snapshot3+hdmi~3572^2~578 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=add0cdb43a421239c1ca6ebe6fc2b591b37dbc00;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.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 248bc37..3d151bd 100644 --- a/drivers/net/ethernet/brocade/bna/bnad.c +++ b/drivers/net/ethernet/brocade/bna/bnad.c @@ -3262,7 +3262,6 @@ bnad_uninit(struct bnad *bnad) if (bnad->bar0) iounmap(bnad->bar0); - pci_set_drvdata(bnad->pcidev, NULL); } /*