Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Only print the debug message about failed remapp...



details:   https://anonhg.NetBSD.org/src/rev/93dc0b466eda
branches:  trunk
changeset: 757104:93dc0b466eda
user:      jym <jym%NetBSD.org@localhost>
date:      Sat Aug 14 21:01:26 2010 +0000

description:
Only print the debug message about failed remapping when ATU_QUIRK_NO_REMAP
is not set in the atu_quirk flags.

'!' takes precedence over bitwise operation '&', so use parenthesis.

diffstat:

 sys/dev/usb/if_atu.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r b2df7b4fda1f -r 93dc0b466eda sys/dev/usb/if_atu.c
--- a/sys/dev/usb/if_atu.c      Sat Aug 14 20:52:05 2010 +0000
+++ b/sys/dev/usb/if_atu.c      Sat Aug 14 21:01:26 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_atu.c,v 1.38 2010/04/05 07:21:48 joerg Exp $ */
+/*     $NetBSD: if_atu.c,v 1.39 2010/08/14 21:01:26 jym Exp $ */
 /*     $OpenBSD: if_atu.c,v 1.48 2004/12/30 01:53:21 dlg Exp $ */
 /*
  * Copyright (c) 2003, 2004
@@ -48,7 +48,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.38 2010/04/05 07:21:48 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_atu.c,v 1.39 2010/08/14 21:01:26 jym Exp $");
 
 
 #include <sys/param.h>
@@ -897,7 +897,7 @@
 
        DPRINTFN(15, ("%s: sending remap\n", USBDEVNAME(sc->atu_dev)));
        err = atu_usb_request(sc, DFU_REMAP, 0, 0, 0, NULL);
-       if ((err) && (! sc->atu_quirk & ATU_QUIRK_NO_REMAP)) {
+       if ((err) && !(sc->atu_quirk & ATU_QUIRK_NO_REMAP)) {
                DPRINTF(("%s: remap failed!\n", USBDEVNAME(sc->atu_dev)));
                return;
        }



Home | Main Index | Thread Index | Old Index