summaryrefslogtreecommitdiffstats
path: root/sys/dev/microcode/adw/adwmcode.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2011-04-07 15:30:13 +0000
committermiod <miod@openbsd.org>2011-04-07 15:30:13 +0000
commit88ee6abd86546d6aaff5433273d629543f1cf541 (patch)
tree8aa534e1e5ea72bfd571e672fa108ad62962c2ac /sys/dev/microcode/adw/adwmcode.c
parentMove a function declaration out of the function since it is used in the next (diff)
downloadwireguard-openbsd-88ee6abd86546d6aaff5433273d629543f1cf541.tar.xz
wireguard-openbsd-88ee6abd86546d6aaff5433273d629543f1cf541.zip
Do not use NULL in integer comparisons. No functional change.
ok matthew@ tedu@, also eyeballed by at least krw@ oga@ kettenis@ jsg@
Diffstat (limited to 'sys/dev/microcode/adw/adwmcode.c')
-rw-r--r--sys/dev/microcode/adw/adwmcode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/microcode/adw/adwmcode.c b/sys/dev/microcode/adw/adwmcode.c
index 41818b8ff59..7045fb46204 100644
--- a/sys/dev/microcode/adw/adwmcode.c
+++ b/sys/dev/microcode/adw/adwmcode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adwmcode.c,v 1.4 2010/06/26 23:24:45 guenther Exp $ */
+/* $OpenBSD: adwmcode.c,v 1.5 2011/04/07 15:30:16 miod Exp $ */
/* $NetBSD: adwmcode.c,v 1.5 2000/05/27 18:24:50 dante Exp $ */
/*
@@ -77,7 +77,7 @@ AdwInitCarriers(carr_dmap, carriers)
ADW_CARRIER *carriers;
{
ADW_CARRIER *carr;
- u_int32_t carr_next = NULL;
+ u_int32_t carr_next = 0;
int i;
bzero(carriers, sizeof(ADW_CARRIER) * ADW_MAX_CARRIER);