From: Hariprasad Shenai Date: Tue, 1 Mar 2016 11:49:35 +0000 (+0530) Subject: cxgb4vf: Remove redundant adapter ready check during probe X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5d7b80522b3f1c60147b8c0405ca57e015be26e5;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: David S. Miller --- 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 @@ -2236,16 +2236,6 @@ static int adap_init0(struct adapter *adapter) int err; 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