Commit 5d7b8052 authored by Hariprasad Shenai's avatar Hariprasad Shenai Committed by David S. Miller

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: default avatarHariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cb440364
...@@ -2236,16 +2236,6 @@ static int adap_init0(struct adapter *adapter) ...@@ -2236,16 +2236,6 @@ static int adap_init0(struct adapter *adapter)
int err; int err;
u32 param, val = 0; 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 * 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 * 2.6.31 and later we can't call pci_reset_function() in order to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment