Module Name: src Committed By: skrll Date: Tue Apr 7 07:58:56 UTC 2015
Modified Files: src/sys/dev/usb [nick-nhusb]: usb_subr.c Log Message: Oops. Fix previous. To generate a diff of this commit: cvs rdiff -u -r1.198.2.11 -r1.198.2.12 src/sys/dev/usb/usb_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/usb_subr.c diff -u src/sys/dev/usb/usb_subr.c:1.198.2.11 src/sys/dev/usb/usb_subr.c:1.198.2.12 --- src/sys/dev/usb/usb_subr.c:1.198.2.11 Tue Apr 7 07:16:47 2015 +++ src/sys/dev/usb/usb_subr.c Tue Apr 7 07:58:56 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: usb_subr.c,v 1.198.2.11 2015/04/07 07:16:47 skrll Exp $ */ +/* $NetBSD: usb_subr.c,v 1.198.2.12 2015/04/07 07:58:56 skrll Exp $ */ /* $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $ */ /* @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.198.2.11 2015/04/07 07:16:47 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.198.2.12 2015/04/07 07:58:56 skrll Exp $"); #ifdef _KERNEL_OPT #include "opt_compat_netbsd.h" @@ -1432,7 +1432,7 @@ usbd_fill_deviceinfo(struct usbd_device * if SS, otherwise it means UPS_LOW_SPEED. */ else if (dev->ud_speed == USB_SPEED_SUPER && - (s & UPS_PORT_POWER_SS) && + (s & UPS_PORT_POWER_SS)) err = USB_PORT_POWERED; else if (s & UPS_PORT_POWER) err = USB_PORT_POWERED;