提交 d8f1a5ed 编写于 作者: R Roel Kluin 提交者: Greg Kroah-Hartman

USB: xhci: fix less- and greater than confusion

Without this change the loops won't start
Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 0f157ef3
...@@ -419,7 +419,7 @@ void xhci_dbg_ctx(struct xhci_hcd *xhci, struct xhci_device_control *ctx, dma_ad ...@@ -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, (unsigned long long)dma,
ctx->add_flags); ctx->add_flags);
dma += field_size; 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", xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - rsvd[%d]\n",
&ctx->rsvd[i], (unsigned long long)dma, &ctx->rsvd[i], (unsigned long long)dma,
ctx->rsvd[i], i); ctx->rsvd[i], i);
...@@ -443,7 +443,7 @@ void xhci_dbg_ctx(struct xhci_hcd *xhci, struct xhci_device_control *ctx, dma_ad ...@@ -443,7 +443,7 @@ void xhci_dbg_ctx(struct xhci_hcd *xhci, struct xhci_device_control *ctx, dma_ad
&ctx->slot.dev_state, &ctx->slot.dev_state,
(unsigned long long)dma, ctx->slot.dev_state); (unsigned long long)dma, ctx->slot.dev_state);
dma += field_size; 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", xhci_dbg(xhci, "@%p (virt) @%08llx (dma) %#08x - rsvd[%d]\n",
&ctx->slot.reserved[i], (unsigned long long)dma, &ctx->slot.reserved[i], (unsigned long long)dma,
ctx->slot.reserved[i], i); ctx->slot.reserved[i], i);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册