Skip to content

Commit

Permalink
usb/isp1760: Remove false error printout
Browse files Browse the repository at this point in the history
This removes the "qh is 0" printout. qh == NULL if the urb has
been unlinked, so this condition is normal.

Signed-off-by: Arvid Brodin <arvid.brodin@enea.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Arvid Brodin authored and Greg Kroah-Hartman committed May 3, 2011
1 parent dfbc6fa commit 847ed3e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions drivers/usb/host/isp1760-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1021,10 +1021,10 @@ static void do_atl_int(struct usb_hcd *hcd)
qtd = priv->atl_ints[slot].qtd;
qh = priv->atl_ints[slot].qh;

if (!qh) {
dev_err(hcd->self.controller, "qh is 0\n");
/* urb unlinked? */
if (!qh)
continue;
}

ptd_read(hcd->regs, ATL_PTD_OFFSET, slot, &ptd);

rl = (ptd.dw2 >> 25) & 0x0f;
Expand Down Expand Up @@ -1213,10 +1213,9 @@ static void do_intl_int(struct usb_hcd *hcd)
qtd = priv->int_ints[slot].qtd;
qh = priv->int_ints[slot].qh;

if (!qh) {
dev_err(hcd->self.controller, "(INT) qh is 0\n");
/* urb unlinked? */
if (!qh)
continue;
}

ptd_read(hcd->regs, INT_PTD_OFFSET, slot, &ptd);
check_int_err_status(hcd, ptd.dw4);
Expand Down

0 comments on commit 847ed3e

Please sign in to comment.