Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb actually fix one of the previous: don't test fo...
details: https://anonhg.NetBSD.org/src/rev/4fd970846dbb
branches: trunk
changeset: 335309:4fd970846dbb
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Jan 02 20:42:44 2015 +0000
description:
actually fix one of the previous: don't test for NULL after deref.
diffstat:
sys/dev/usb/umidi.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r 0f358e67eb3b -r 4fd970846dbb sys/dev/usb/umidi.c
--- a/sys/dev/usb/umidi.c Fri Jan 02 20:34:26 2015 +0000
+++ b/sys/dev/usb/umidi.c Fri Jan 02 20:42:44 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: umidi.c,v 1.67 2015/01/02 16:38:45 christos Exp $ */
+/* $NetBSD: umidi.c,v 1.68 2015/01/02 20:42:44 mrg Exp $ */
/*
* Copyright (c) 2001, 2012, 2014 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umidi.c,v 1.67 2015/01/02 16:38:45 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umidi.c,v 1.68 2015/01/02 20:42:44 mrg Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -493,8 +493,6 @@
KASSERT(mutex_owned(&sc->sc_lock));
DPRINTF(("umidi_open: sc=%p\n", sc));
- if (!sc)
- return ENXIO;
if (mididev->opened)
return EBUSY;
if (sc->sc_dying)
Home |
Main Index |
Thread Index |
Old Index