[PATCH -next] usb: fusbh200-hcd: convert list_for_each to entry variant

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>

convert list_for_each() to list_for_each_entry() where
applicable.

Signed-off-by: Wei Yongjun <yongjun_wei@xxxxxxxxxxxxxxxxx>
---
 drivers/usb/host/fusbh200-hcd.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/usb/host/fusbh200-hcd.c b/drivers/usb/host/fusbh200-hcd.c
index 79ce799..b8deb98 100644
--- a/drivers/usb/host/fusbh200-hcd.c
+++ b/drivers/usb/host/fusbh200-hcd.c
@@ -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)

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux