summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2016-01-26 01:52:10 +0000
committerdlg <dlg@openbsd.org>2016-01-26 01:52:10 +0000
commite2df1456f7a35d571e5f136c62d95caa973bf144 (patch)
tree9e24a6093a7755e461bae17c99b6f0209aa8e0fd
parentdont leak mbufs on encap failure. (diff)
downloadwireguard-openbsd-e2df1456f7a35d571e5f136c62d95caa973bf144.tar.xz
wireguard-openbsd-e2df1456f7a35d571e5f136c62d95caa973bf144.zip
prettify a NULL test in vr_start.
from richard proctor on bugs@
-rw-r--r--sys/dev/pci/if_vr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_vr.c b/sys/dev/pci/if_vr.c
index ea1a6c41b01..1f3717e3699 100644
--- a/sys/dev/pci/if_vr.c
+++ b/sys/dev/pci/if_vr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vr.c,v 1.149 2016/01/26 01:51:33 dlg Exp $ */
+/* $OpenBSD: if_vr.c,v 1.150 2016/01/26 01:52:10 dlg Exp $ */
/*
* Copyright (c) 1997, 1998
@@ -1324,7 +1324,7 @@ vr_start(struct ifnet *ifp)
}
IFQ_DEQUEUE(&ifp->if_snd, m);
- if (m== NULL)
+ if (m == NULL)
break;
/* Pack the data into the descriptor. */