From f6129f414cbe94169beb11dd59307556f48ba33a Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Sun, 22 Jan 2017 10:17:40 +0000 Subject: move counting if_opackets next to counting if_obytes in if_enqueue. this means packets are consistently counted in one place, unlike the many and various ways that drivers thought they should do it. ok mpi@ deraadt@ --- sys/dev/usb/if_url.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/dev/usb/if_url.c') diff --git a/sys/dev/usb/if_url.c b/sys/dev/usb/if_url.c index 13478c8b544..1158788930e 100644 --- a/sys/dev/usb/if_url.c +++ b/sys/dev/usb/if_url.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_url.c,v 1.81 2016/11/06 12:58:01 mpi Exp $ */ +/* $OpenBSD: if_url.c,v 1.82 2017/01/22 10:17:39 dlg Exp $ */ /* $NetBSD: if_url.c,v 1.6 2002/09/29 10:19:21 martin Exp $ */ /* * Copyright (c) 2001, 2002 @@ -885,8 +885,6 @@ url_txeof(struct usbd_xfer *xfer, void *priv, usbd_status status) return; } - ifp->if_opackets++; - m_freem(c->url_mbuf); c->url_mbuf = NULL; -- cgit v1.2.3