diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-10-18 00:22:22 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-18 04:03:30 (GMT) |
commit | d8283e552d11e3f1c447b0c3125fa8b28acbd874 (patch) | |
tree | 32b56b33a230a4d947f3f2e1707334509d828b4f /drivers/net/ethernet/brocade | |
parent | 4fc76e6f347eed69bf7e2bcbcf9e2c0fd2964ff7 (diff) | |
download | linux-d8283e552d11e3f1c447b0c3125fa8b28acbd874.tar.xz |
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 <jg1.han@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/brocade')
-rw-r--r-- | drivers/net/ethernet/brocade/bna/bnad.c | 1 |
1 files changed, 0 insertions, 1 deletions
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, |