diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-10-17 20:22:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-18 00:03:30 -0400 |
commit | d8283e552d11e3f1c447b0c3125fa8b28acbd874 (patch) | |
tree | 32b56b33a230a4d947f3f2e1707334509d828b4f /drivers/net/ethernet/brocade/bna/bnad.c | |
parent | 4fc76e6f347eed69bf7e2bcbcf9e2c0fd2964ff7 (diff) |
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/bna/bnad.c')
-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 b78e69e0e52a..f276433d37ce 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, | |||
3212 | bnad->bar0 = ioremap_nocache(bnad->mmio_start, bnad->mmio_len); | 3212 | bnad->bar0 = ioremap_nocache(bnad->mmio_start, bnad->mmio_len); |
3213 | if (!bnad->bar0) { | 3213 | if (!bnad->bar0) { |
3214 | dev_err(&pdev->dev, "ioremap for bar0 failed\n"); | 3214 | dev_err(&pdev->dev, "ioremap for bar0 failed\n"); |
3215 | pci_set_drvdata(pdev, NULL); | ||
3216 | return -ENOMEM; | 3215 | return -ENOMEM; |
3217 | } | 3216 | } |
3218 | pr_info("bar0 mapped to %p, len %llu\n", bnad->bar0, | 3217 | pr_info("bar0 mapped to %p, len %llu\n", bnad->bar0, |