]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB: xhci: fix less- and greater than confusion
authorRoel Kluin <roel.kluin@gmail.com>
Sun, 12 Jul 2009 22:23:47 +0000 (00:23 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 28 Jul 2009 21:31:11 +0000 (14:31 -0700)
Without this change the loops won't start

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/host/xhci-dbg.c

index 2501c571f855263f21200265888d58602deac86f..56032f2d84e8e9e72b8396b32094943ad7990e3c 100644 (file)
@@ -419,7 +419,7 @@ void xhci_dbg_ctx(struct xhci_hcd *xhci, struct xhci_device_control *ctx, dma_ad
                        &ctx->add_flags, (unsigned long long)dma,
                        ctx->add_flags);
        dma += field_size;
-       for (i = 0; i > 6; ++i) {
+       for (i = 0; i < 6; ++i) {
                xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - rsvd[%d]\n",
                                &ctx->rsvd[i], (unsigned long long)dma,
                                ctx->rsvd[i], i);
@@ -443,7 +443,7 @@ void xhci_dbg_ctx(struct xhci_hcd *xhci, struct xhci_device_control *ctx, dma_ad
                        &ctx->slot.dev_state,
                        (unsigned long long)dma, ctx->slot.dev_state);
        dma += field_size;
-       for (i = 0; i > 4; ++i) {
+       for (i = 0; i < 4; ++i) {
                xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - rsvd[%d]\n",
                                &ctx->slot.reserved[i], (unsigned long long)dma,
                                ctx->slot.reserved[i], i);