Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev fix reversed test, NULL for clarity.
details: https://anonhg.NetBSD.org/src/rev/d3620b0e7242
branches: trunk
changeset: 349631:d3620b0e7242
user: christos <christos%NetBSD.org@localhost>
date: Fri Dec 16 22:14:15 2016 +0000
description:
fix reversed test, NULL for clarity.
diffstat:
sys/dev/audio.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r afec01e17f30 -r d3620b0e7242 sys/dev/audio.c
--- a/sys/dev/audio.c Fri Dec 16 22:11:04 2016 +0000
+++ b/sys/dev/audio.c Fri Dec 16 22:14:15 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: audio.c,v 1.281 2016/12/16 22:03:10 christos Exp $ */
+/* $NetBSD: audio.c,v 1.282 2016/12/16 22:14:15 christos Exp $ */
/*-
* Copyright (c) 2016 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -148,7 +148,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.281 2016/12/16 22:03:10 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: audio.c,v 1.282 2016/12/16 22:14:15 christos Exp $");
#include "audio.h"
#if NAUDIO > 0
@@ -528,7 +528,7 @@
hwp->query_devinfo == 0 ||
hwp->get_props == 0) {
aprint_error(": missing method\n");
- sc->hw_if = 0;
+ sc->hw_if = NULL;
return;
}
#endif
@@ -1432,7 +1432,7 @@
/* First, find the device and take sc_lock. */
sc = device_lookup_private(&audio_cd, AUDIOUNIT(dev));
- if (sc == NULL || sc->hw_if)
+ if (sc == NULL || sc->hw_if == NULL)
return ENXIO;
mutex_enter(sc->sc_lock);
if (sc->sc_dying) {
Home |
Main Index |
Thread Index |
Old Index