Commit 7961acd7 authored by Andiry Xu's avatar Andiry Xu Committed by Sarah Sharp

xHCI: fix printk_ratelimit() usage

printk_ratelimit() is misused in xhci-ring.c.
Signed-off-by: default avatarAndiry Xu <andiry.xu@amd.com>
Signed-off-by: default avatarSarah Sharp <sarah.a.sharp@linux.intel.com>
parent f2c565e2
...@@ -2452,7 +2452,7 @@ int xhci_queue_intr_tx(struct xhci_hcd *xhci, gfp_t mem_flags, ...@@ -2452,7 +2452,7 @@ int xhci_queue_intr_tx(struct xhci_hcd *xhci, gfp_t mem_flags,
* to set the polling interval (once the API is added). * to set the polling interval (once the API is added).
*/ */
if (xhci_interval != ep_interval) { if (xhci_interval != ep_interval) {
if (!printk_ratelimit()) if (printk_ratelimit())
dev_dbg(&urb->dev->dev, "Driver uses different interval" dev_dbg(&urb->dev->dev, "Driver uses different interval"
" (%d microframe%s) than xHCI " " (%d microframe%s) than xHCI "
"(%d microframe%s)\n", "(%d microframe%s)\n",
...@@ -3080,7 +3080,7 @@ int xhci_queue_isoc_tx_prepare(struct xhci_hcd *xhci, gfp_t mem_flags, ...@@ -3080,7 +3080,7 @@ int xhci_queue_isoc_tx_prepare(struct xhci_hcd *xhci, gfp_t mem_flags,
* to set the polling interval (once the API is added). * to set the polling interval (once the API is added).
*/ */
if (xhci_interval != ep_interval) { if (xhci_interval != ep_interval) {
if (!printk_ratelimit()) if (printk_ratelimit())
dev_dbg(&urb->dev->dev, "Driver uses different interval" dev_dbg(&urb->dev->dev, "Driver uses different interval"
" (%d microframe%s) than xHCI " " (%d microframe%s) than xHCI "
"(%d microframe%s)\n", "(%d microframe%s)\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment