summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_em_soc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/if_em_soc.c')
-rw-r--r--sys/dev/pci/if_em_soc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_em_soc.c b/sys/dev/pci/if_em_soc.c
index 7932e9cacd2..73b438f42c9 100644
--- a/sys/dev/pci/if_em_soc.c
+++ b/sys/dev/pci/if_em_soc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_em_soc.c,v 1.1 2009/11/25 13:28:13 dms Exp $ */
+/* $OpenBSD: if_em_soc.c,v 1.2 2011/04/07 15:30:16 miod Exp $ */
/*
* Copyright (c) 2009 Dariusz Swiderski <sfires@sfires.net>
@@ -32,7 +32,7 @@ em_lookup_gcu(struct device *self)
INIT_DEBUGOUT("em_lookup_gcu");
TAILQ_FOREACH(dev, &alldevs, dv_list) {
- if (strcmp(dev->dv_xname, "gcu0") == NULL) {
+ if (strcmp(dev->dv_xname, "gcu0") == 0) {
return dev;
}
}