summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-10-24 22:11:08 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-10-24 22:11:08 +0000
commit5984cf7c392a5e2549566698a81a597f8cba771a (patch)
tree2d8b3ae02924189bcd7984c6588aff842878f32b /sys/arch/i386
parentd84c62fe6fbb9132bc6054e8557dcc20ed978b52 (diff)
Match on `esm' as the device name, not `anything starting with esm'; ok dlg@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/esm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/esm.c b/sys/arch/i386/i386/esm.c
index e2c912556c5..bc7ccb89bdc 100644
--- a/sys/arch/i386/i386/esm.c
+++ b/sys/arch/i386/i386/esm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: esm.c,v 1.49 2009/03/29 21:53:52 sthen Exp $ */
+/* $OpenBSD: esm.c,v 1.50 2009/10/24 22:11:07 miod Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -209,8 +209,7 @@ esm_match(struct device *parent, void *match, void *aux)
{
struct esm_attach_args *eaa = aux;
- if (strncmp(eaa->eaa_name, esm_cd.cd_name, sizeof(esm_cd.cd_name)) == 0 &&
- esm_probe(eaa))
+ if (strcmp(eaa->eaa_name, esm_cd.cd_name) == 0 && esm_probe(eaa))
return (1);
return (0);