svn commit: r213396 - user/weongyo/usb/sys/dev/usb/controller
Weongyo Jeong
weongyo at FreeBSD.org
Mon Oct 4 02:40:20 UTC 2010
Author: weongyo
Date: Mon Oct 4 02:40:20 2010
New Revision: 213396
URL: http://svn.freebsd.org/changeset/base/213396
Log:
Only prints a message if `stop' is 0 that it didn't check `stop'
variable.
Modified:
user/weongyo/usb/sys/dev/usb/controller/ehci.c
Modified: user/weongyo/usb/sys/dev/usb/controller/ehci.c
==============================================================================
--- user/weongyo/usb/sys/dev/usb/controller/ehci.c Mon Oct 4 01:08:31 2010 (r213395)
+++ user/weongyo/usb/sys/dev/usb/controller/ehci.c Mon Oct 4 02:40:20 2010 (r213396)
@@ -829,7 +829,7 @@ ehci_dump_sqtds(ehci_softc_t *sc, ehci_q
stop = 0;
for (i = 0; sqtd && (i < 20) && !stop; sqtd = sqtd->obj_next, i++)
stop = ehci_dump_sqtd(sc, sqtd);
- if (sqtd)
+ if (sqtd != NULL && stop == 0)
printf("dump aborted, too many TDs\n");
}
More information about the svn-src-user
mailing list