aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/fusbh200-hcd.c
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-05-20 22:40:12 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-21 14:48:03 -0400
commit47ac5b6e406642801b9854179df111d1cbbb0b59 (patch)
tree4e470471aabd31a002154abe4bfdd850450ac0c7 /drivers/usb/host/fusbh200-hcd.c
parent244435b8eecba7bb8b791350de3f08e638a331f2 (diff)
usb: fusbh200-hcd: convert list_for_each to entry variant
convert list_for_each() to list_for_each_entry() where applicable. Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/fusbh200-hcd.c')
-rw-r--r--drivers/usb/host/fusbh200-hcd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/host/fusbh200-hcd.c b/drivers/usb/host/fusbh200-hcd.c
index cb1f2fa0faf7..bf2154d1fe55 100644
--- a/drivers/usb/host/fusbh200-hcd.c
+++ b/drivers/usb/host/fusbh200-hcd.c
@@ -427,7 +427,6 @@ static void qh_lines (
427{ 427{
428 u32 scratch; 428 u32 scratch;
429 u32 hw_curr; 429 u32 hw_curr;
430 struct list_head *entry;
431 struct fusbh200_qtd *td; 430 struct fusbh200_qtd *td;
432 unsigned temp; 431 unsigned temp;
433 unsigned size = *sizep; 432 unsigned size = *sizep;
@@ -464,8 +463,7 @@ static void qh_lines (
464 next += temp; 463 next += temp;
465 464
466 /* hc may be modifying the list as we read it ... */ 465 /* hc may be modifying the list as we read it ... */
467 list_for_each (entry, &qh->qtd_list) { 466 list_for_each_entry(td, &qh->qtd_list, qtd_list) {
468 td = list_entry (entry, struct fusbh200_qtd, qtd_list);
469 scratch = hc32_to_cpup(fusbh200, &td->hw_token); 467 scratch = hc32_to_cpup(fusbh200, &td->hw_token);
470 mark = ' '; 468 mark = ' ';
471 if (hw_curr == td->qtd_dma) 469 if (hw_curr == td->qtd_dma)