Date: Mon, 4 Oct 2010 02:40:20 +0000 (UTC) From: Weongyo Jeong <weongyo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r213396 - user/weongyo/usb/sys/dev/usb/controller Message-ID: <201010040240.o942eKJf097613@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010040240.o942eKJf097613>