Re: [PATCH] bug with EHCI cpufreq patch on nVidia controllers

Pete Zaitcev <[email protected]>
Newsgroups gmane.linux.usb.devel
Organization Red Hat, Inc.
Message-ID <[email protected]>
On Tue, 31 Jul 2007 17:00:04 -0500, <[email protected]> wrote:

> +	list_for_each_safe (entry, tmp, &qh->qtd_list) {
> +		qtd = list_entry (entry, struct ehci_qtd, qtd_list);
> +		if (cpu_to_le32 (qtd->qtd_dma) == qh->hw_current)
> +			return qtd;
> +	}

Why use list_for_each_safe when mere list_for_each would do?
In fact, some might ask for list_for_each_entry.

-- Pete

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.