diff mbox

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

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

Commit Message

Zoltan Kiss March 19, 2015, 7:14 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 72c2368..2119518 100644
--- a/lib/netdev-odp.c
+++ b/lib/netdev-odp.c
@@ -595,7 +595,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];
 
@@ -603,8 +602,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;