Commit 1ec2780c authored by Geyslan G. Bem's avatar Geyslan G. Bem Committed by Greg Kroah-Hartman

usb: host: ehci-sched: use C89-style comments

This patch changes comments conforming coding style.

Caught by checkpatch.
Signed-off-by: default avatarGeyslan G. Bem <geyslan@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2fee2fed
...@@ -52,7 +52,7 @@ periodic_next_shadow(struct ehci_hcd *ehci, union ehci_shadow *periodic, ...@@ -52,7 +52,7 @@ periodic_next_shadow(struct ehci_hcd *ehci, union ehci_shadow *periodic,
return &periodic->fstn->fstn_next; return &periodic->fstn->fstn_next;
case Q_TYPE_ITD: case Q_TYPE_ITD:
return &periodic->itd->itd_next; return &periodic->itd->itd_next;
// case Q_TYPE_SITD: /* case Q_TYPE_SITD: */
default: default:
return &periodic->sitd->sitd_next; return &periodic->sitd->sitd_next;
} }
...@@ -491,7 +491,7 @@ static int tt_no_collision( ...@@ -491,7 +491,7 @@ static int tt_no_collision(
type = Q_NEXT_TYPE(ehci, here.sitd->hw_next); type = Q_NEXT_TYPE(ehci, here.sitd->hw_next);
here = here.sitd->sitd_next; here = here.sitd->sitd_next;
continue; continue;
// case Q_TYPE_FSTN: /* case Q_TYPE_FSTN: */
default: default:
ehci_dbg(ehci, ehci_dbg(ehci,
"periodic frame %d bogus type %d\n", "periodic frame %d bogus type %d\n",
...@@ -784,7 +784,7 @@ static int check_period( ...@@ -784,7 +784,7 @@ static int check_period(
return 0; return 0;
} }
// success! /* success! */
return 1; return 1;
} }
...@@ -1254,7 +1254,7 @@ iso_sched_free( ...@@ -1254,7 +1254,7 @@ iso_sched_free(
{ {
if (!iso_sched) if (!iso_sched)
return; return;
// caller must hold ehci->lock! /* caller must hold ehci->lock! */
list_splice(&iso_sched->td_list, &stream->free_list); list_splice(&iso_sched->td_list, &stream->free_list);
kfree(iso_sched); kfree(iso_sched);
} }
...@@ -1715,7 +1715,7 @@ itd_patch( ...@@ -1715,7 +1715,7 @@ itd_patch(
struct ehci_iso_packet *uf = &iso_sched->packet[index]; struct ehci_iso_packet *uf = &iso_sched->packet[index];
unsigned pg = itd->pg; unsigned pg = itd->pg;
// BUG_ON (pg == 6 && uf->cross); /* BUG_ON(pg == 6 && uf->cross); */
uframe &= 0x07; uframe &= 0x07;
itd->index[uframe] = index; itd->index[uframe] = index;
...@@ -1792,7 +1792,7 @@ static void itd_link_urb( ...@@ -1792,7 +1792,7 @@ static void itd_link_urb(
packet < urb->number_of_packets;) { packet < urb->number_of_packets;) {
if (itd == NULL) { if (itd == NULL) {
/* ASSERT: we have all necessary itds */ /* ASSERT: we have all necessary itds */
// BUG_ON (list_empty (&iso_sched->td_list)); /* BUG_ON(list_empty(&iso_sched->td_list)); */
/* ASSERT: no itds for this endpoint in this uframe */ /* ASSERT: no itds for this endpoint in this uframe */
...@@ -1894,9 +1894,10 @@ static bool itd_complete(struct ehci_hcd *ehci, struct ehci_itd *itd) ...@@ -1894,9 +1894,10 @@ static bool itd_complete(struct ehci_hcd *ehci, struct ehci_itd *itd)
if (likely((urb_index + 1) != urb->number_of_packets)) if (likely((urb_index + 1) != urb->number_of_packets))
goto done; goto done;
/* ASSERT: it's really the last itd for this urb /*
list_for_each_entry (itd, &stream->td_list, itd_list) * ASSERT: it's really the last itd for this urb
BUG_ON (itd->urb == urb); * list_for_each_entry (itd, &stream->td_list, itd_list)
* BUG_ON(itd->urb == urb);
*/ */
/* give urb back to the driver; completion often (re)submits */ /* give urb back to the driver; completion often (re)submits */
...@@ -2275,9 +2276,10 @@ static bool sitd_complete(struct ehci_hcd *ehci, struct ehci_sitd *sitd) ...@@ -2275,9 +2276,10 @@ static bool sitd_complete(struct ehci_hcd *ehci, struct ehci_sitd *sitd)
if ((urb_index + 1) != urb->number_of_packets) if ((urb_index + 1) != urb->number_of_packets)
goto done; goto done;
/* ASSERT: it's really the last sitd for this urb /*
list_for_each_entry (sitd, &stream->td_list, sitd_list) * ASSERT: it's really the last sitd for this urb
BUG_ON (sitd->urb == urb); * list_for_each_entry (sitd, &stream->td_list, sitd_list)
* BUG_ON(sitd->urb == urb);
*/ */
/* give urb back to the driver; completion often (re)submits */ /* give urb back to the driver; completion often (re)submits */
......
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