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 a redundant test.



details:   https://anonhg.NetBSD.org/src/rev/111fddb1d090
branches:  trunk
changeset: 473617:111fddb1d090
user:      augustss <augustss%NetBSD.org@localhost>
date:      Wed Jun 09 17:04:45 1999 +0000

description:
Remove a redundant test.

diffstat:

 sys/dev/usb/uhci.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 3b8463c52d6b -r 111fddb1d090 sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c        Wed Jun 09 15:34:08 1999 +0000
+++ b/sys/dev/usb/uhci.c        Wed Jun 09 17:04:45 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uhci.c,v 1.28 1999/05/21 10:15:24 augustss Exp $       */
+/*     $NetBSD: uhci.c,v 1.29 1999/06/09 17:04:45 augustss Exp $       */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -1919,7 +1919,7 @@
 
        if (len != 0) {
                dma = &upipe->u.bulk.datadma;
-               if (upipe->u.bulk.isread && len != 0)
+               if (upipe->u.bulk.isread)
                        memcpy(reqh->buffer, KERNADDR(dma), len);
                uhci_free_std_chain(sc, htd->link.std, 0);
                usb_freemem(sc->sc_dmatag, dma);



Home | Main Index | Thread Index | Old Index