diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2005-12-28 10:08:08 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2005-12-28 10:08:08 +0000 |
commit | 59e8761c5b0a93fe0ffd0f91f2435e2e3164d4c8 (patch) | |
tree | 0bb5b9bbb92d8f86f4fb205dfd4eaf6207a86dc8 /sys/arch | |
parent | 473b99c5d623273e80f21ee9c99a174bea803f71 (diff) |
Fix totally bogus previous commit.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/macppc/dev/onyx.c | 4 | ||||
-rw-r--r-- | sys/arch/macppc/dev/snapper.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/macppc/dev/onyx.c b/sys/arch/macppc/dev/onyx.c index 65a794201b4..28be4a010f5 100644 --- a/sys/arch/macppc/dev/onyx.c +++ b/sys/arch/macppc/dev/onyx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: onyx.c,v 1.5 2005/12/17 00:04:10 kettenis Exp $ */ +/* $OpenBSD: onyx.c,v 1.6 2005/12/28 10:08:07 kettenis Exp $ */ /*- * Copyright (c) 2005 Tsubai Masanari. All rights reserved. @@ -131,7 +131,7 @@ onyx_match(struct device *parent, void *match, void *aux) return (0); if (OF_getprop(soundchip, "platform-onyx-codec-ref", - &soundcodec, sizeof soundcodec)) + &soundcodec, sizeof soundcodec) == sizeof soundcodec) return (1); /* diff --git a/sys/arch/macppc/dev/snapper.c b/sys/arch/macppc/dev/snapper.c index 0459670f007..fe6211f222b 100644 --- a/sys/arch/macppc/dev/snapper.c +++ b/sys/arch/macppc/dev/snapper.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snapper.c,v 1.26 2005/12/17 00:04:10 kettenis Exp $ */ +/* $OpenBSD: snapper.c,v 1.27 2005/12/28 10:08:07 kettenis Exp $ */ /* $NetBSD: snapper.c,v 1.1 2003/12/27 02:19:34 grant Exp $ */ /*- @@ -295,11 +295,11 @@ snapper_match(struct device *parent, void *match, void *aux) bzero(compat, sizeof compat); OF_getprop(soundchip, "compatible", compat, sizeof compat); - if (strcmp(compat, "snapper")) + if (strcmp(compat, "snapper") == 0) return (1); if (OF_getprop(soundchip, "platform-tas-codec-ref", - &soundcodec, sizeof soundcodec)) + &soundcodec, sizeof soundcodec) == sizeof soundcodec) return (1); return (0); |