summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx88/cx88-core.c
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-10-10 01:37:40 -0700
committerTrent Piepho <xyzzy@speakeasy.org>2007-10-10 01:37:40 -0700
commitf2ff2cde42478f71de74e205def6e0040d3aadf3 (patch)
tree0196dad586ae5a0d703506c61f0765f1378fa6b4 /linux/drivers/media/video/cx88/cx88-core.c
parentb2674ba8094f2f8f3ec3039d8fb97f8c91b22f5c (diff)
downloadmediapointer-dvb-s2-f2ff2cde42478f71de74e205def6e0040d3aadf3.tar.gz
mediapointer-dvb-s2-f2ff2cde42478f71de74e205def6e0040d3aadf3.tar.bz2
cx88: Replace list_for_each+list_entry with list_for_each_entry
From: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-core.c')
-rw-r--r--linux/drivers/media/video/cx88/cx88-core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-core.c b/linux/drivers/media/video/cx88/cx88-core.c
index 6b151519f..e3885a4d1 100644
--- a/linux/drivers/media/video/cx88/cx88-core.c
+++ b/linux/drivers/media/video/cx88/cx88-core.c
@@ -1046,11 +1046,9 @@ struct video_device *cx88_vdev_init(struct cx88_core *core,
struct cx88_core* cx88_core_get(struct pci_dev *pci)
{
struct cx88_core *core;
- struct list_head *item;
mutex_lock(&devlist);
- list_for_each(item,&cx88_devlist) {
- core = list_entry(item, struct cx88_core, devlist);
+ list_for_each_entry(core, &cx88_devlist, devlist) {
if (pci->bus->number != core->pci_bus)
continue;
if (PCI_SLOT(pci->devfn) != core->pci_slot)