]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
usb: fusbh200-hcd: convert list_for_each to entry variant
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 21 May 2013 02:40:12 +0000 (10:40 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 May 2013 18:48:03 +0000 (11:48 -0700)
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>
drivers/usb/host/fusbh200-hcd.c

index cb1f2fa0faf7e2966df9c512f725c501794ab083..bf2154d1fe55c44e9432835c11f3eacd68bf8f7b 100644 (file)
@@ -427,7 +427,6 @@ static void qh_lines (
 {
        u32                     scratch;
        u32                     hw_curr;
-       struct list_head        *entry;
        struct fusbh200_qtd             *td;
        unsigned                temp;
        unsigned                size = *sizep;
@@ -464,8 +463,7 @@ static void qh_lines (
        next += temp;
 
        /* hc may be modifying the list as we read it ... */
-       list_for_each (entry, &qh->qtd_list) {
-               td = list_entry (entry, struct fusbh200_qtd, qtd_list);
+       list_for_each_entry(td, &qh->qtd_list, qtd_list) {
                scratch = hc32_to_cpup(fusbh200, &td->hw_token);
                mark = ' ';
                if (hw_curr == td->qtd_dma)