diff mbox

[v2,5/5] netdev-odp: remove unnecessary counter

Message ID 1427397836-27442-6-git-send-email-zoltan.kiss@linaro.org
State New
Headers show

Commit Message

Zoltan Kiss March 26, 2015, 7:23 p.m. UTC
It's not used to anything, and I don't see any value of it.

Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
---
 lib/netdev-odp.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox

Patch

diff --git a/lib/netdev-odp.c b/lib/netdev-odp.c
index f2fbb94..be97d0e 100644
--- a/lib/netdev-odp.c
+++ b/lib/netdev-odp.c
@@ -592,7 +592,6 @@  netdev_odp_rxq_recv(struct netdev_rxq *rxq_, struct dpif_packet **packets,
     struct netdev_odp *netdev = netdev_odp_cast(rx->up.netdev);
     int pkts, pkts_ok, ret = 0;
     size_t rx_bytes = 0;
-    unsigned long err_cnt = 0;
     int i;
     odp_packet_t pkt_tbl[NETDEV_MAX_RX_BATCH];
 
@@ -600,8 +599,7 @@  netdev_odp_rxq_recv(struct netdev_rxq *rxq_, struct dpif_packet **packets,
     if (OVS_LIKELY(pkts > 0)) {
         pkts_ok = drop_err_pkts(pkt_tbl, pkts);
         if (OVS_UNLIKELY(pkts_ok != pkts))
-          VLOG_ERR_RL(&rl, "Dropped frames:%u - err_cnt:%lu\n",
-                    pkts-pkts_ok, ++err_cnt);
+            VLOG_ERR_RL(&rl, "Dropped frames:%u\n", pkts-pkts_ok);
         if (OVS_UNLIKELY(!pkts_ok)) {
             VLOG_ERR_RL(&rl, "ODP: All %d packets dropped!\n", pkts);
             *c = 0;