diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2016-03-01 17:19:35 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-03-02 14:46:30 -0500 |
commit | 5d7b80522b3f1c60147b8c0405ca57e015be26e5 (patch) | |
tree | 8d0218c6d67dee6e7232e86a5604ce966f3b4b18 | |
parent | cb440364c72cbbf3dde084cf65b997b40ecb8efd (diff) | |
download | linux-5d7b80522b3f1c60147b8c0405ca57e015be26e5.tar.bz2 |
cxgb4vf: Remove redundant adapter ready check during probe
Function t4vf_wait_dev_ready() is already called in t4vf_prep_adapter(),
no need to call it again in adap_init0().
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c index 8337514ababb..5d989e4c42dc 100644 --- a/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c +++ b/drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c @@ -2237,16 +2237,6 @@ static int adap_init0(struct adapter *adapter) u32 param, val = 0; /* - * Wait for the device to become ready before proceeding ... - */ - err = t4vf_wait_dev_ready(adapter); - if (err) { - dev_err(adapter->pdev_dev, "device didn't become ready:" - " err=%d\n", err); - return err; - } - - /* * Some environments do not properly handle PCIE FLRs -- e.g. in Linux * 2.6.31 and later we can't call pci_reset_function() in order to * issue an FLR because of a self- deadlock on the device semaphore. |