cxgb4vf: Remove redundant adapter ready check during probe
authorHariprasad Shenai <hariprasad@chelsio.com>
Tue, 1 Mar 2016 11:49:35 +0000 (17:19 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Mar 2016 19:46:30 +0000 (14:46 -0500)
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>
drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c

index 8337514ababb18c0b172daa04a011c7fbf3b4c91..5d989e4c42dca0d8d2c316634c87e2532c6fd5ec 100644 (file)
@@ -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
This page took 0.027209 seconds and 5 git commands to generate.