diff options
author | 2009-06-23 06:39:48 +0000 | |
---|---|---|
committer | 2009-06-23 06:39:48 +0000 | |
commit | ca5ddd62366c18360c47081ae5f8f4c2fa3f45db (patch) | |
tree | 0f4bf889ccabe58d2dd8ccd5d3302eb9fa66a69d | |
parent | Sync the strict alignment with vr(4). Remove the if (1) and replace it with (diff) | |
download | wireguard-openbsd-ca5ddd62366c18360c47081ae5f8f4c2fa3f45db.tar.xz wireguard-openbsd-ca5ddd62366c18360c47081ae5f8f4c2fa3f45db.zip |
Don't use == for string comparison.
"looks good to me" jakemsr@
-rw-r--r-- | sys/dev/pci/sv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/sv.c b/sys/dev/pci/sv.c index b3146af3706..78882cca0e2 100644 --- a/sys/dev/pci/sv.c +++ b/sys/dev/pci/sv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sv.c,v 1.25 2008/10/25 22:30:43 jakemsr Exp $ */ +/* $OpenBSD: sv.c,v 1.26 2009/06/23 06:39:48 jsg Exp $ */ /* * Copyright (c) 1998 Constantine Paul Sapuntzakis @@ -1421,7 +1421,7 @@ sv_init_mixer(sc) sv_mixer_set_port(sc, &cp); for (idx = 0; idx < ARRAY_SIZE(ports); idx++) { - if (ports[idx].audio == AudioNdac) { + if (strcmp(ports[idx].audio, AudioNdac) == 0) { cp.type = AUDIO_MIXER_ENUM; cp.dev = SV_FIRST_MIXER + idx * SV_DEVICES_PER_PORT + 1; cp.un.ord = 0; |