Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Remove always true conditional
details: https://anonhg.NetBSD.org/src/rev/4211c3776d95
branches: trunk
changeset: 813841:4211c3776d95
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Feb 21 09:50:10 2016 +0000
description:
Remove always true conditional
diffstat:
sys/dev/usb/ugen.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 77f13bac562a -r 4211c3776d95 sys/dev/usb/ugen.c
--- a/sys/dev/usb/ugen.c Sun Feb 21 04:16:36 2016 +0000
+++ b/sys/dev/usb/ugen.c Sun Feb 21 09:50:10 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ugen.c,v 1.128 2016/02/20 17:07:32 skrll Exp $ */
+/* $NetBSD: ugen.c,v 1.129 2016/02/21 09:50:10 skrll Exp $ */
/*
* Copyright (c) 1998, 2004 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ugen.c,v 1.128 2016/02/20 17:07:32 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ugen.c,v 1.129 2016/02/21 09:50:10 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -381,7 +381,7 @@
for (dir = OUT; dir <= IN; dir++) {
if (flag & (dir == OUT ? FWRITE : FREAD)) {
sce = &sc->sc_endpoints[endpt][dir];
- if (sce == NULL || sce->edesc == NULL)
+ if (sce->edesc == NULL)
return (ENXIO);
}
}
@@ -535,7 +535,7 @@
if (!(flag & (dir == OUT ? FWRITE : FREAD)))
continue;
sce = &sc->sc_endpoints[endpt][dir];
- if (sce == NULL || sce->pipeh == NULL)
+ if (sce->pipeh == NULL)
continue;
DPRINTFN(5, ("ugenclose: endpt=%d dir=%d sce=%p\n",
endpt, dir, sce));
@@ -1035,7 +1035,7 @@
for (i = 0; i < USB_MAX_ENDPOINTS; i++) {
for (dir = OUT; dir <= IN; dir++) {
sce = &sc->sc_endpoints[i][dir];
- if (sce && sce->pipeh)
+ if (sce->pipeh)
usbd_abort_pipe(sce->pipeh);
}
}
Home |
Main Index |
Thread Index |
Old Index