net/bnxt: do not log error if stats queried before start
[dpdk.git] / drivers / net / bnxt / bnxt_stats.c
index 20a16a6..65f90e0 100644 (file)
@@ -390,10 +390,8 @@ int bnxt_stats_get_op(struct rte_eth_dev *eth_dev,
                return rc;
 
        memset(bnxt_stats, 0, sizeof(*bnxt_stats));
-       if (!(bp->flags & BNXT_FLAG_INIT_DONE)) {
-               PMD_DRV_LOG(ERR, "Device Initialization not complete!\n");
+       if (!(bp->flags & BNXT_FLAG_INIT_DONE))
                return -EIO;
-       }
 
        num_q_stats = RTE_MIN(bp->rx_cp_nr_rings,
                              (unsigned int)RTE_ETHDEV_QUEUE_STAT_CNTRS);