diff options
Diffstat (limited to 'drivers/media/video/v4l2-int-device.c')
-rw-r--r-- | drivers/media/video/v4l2-int-device.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/media/video/v4l2-int-device.c b/drivers/media/video/v4l2-int-device.c index f497c9458344..8b4ef530a3a8 100644 --- a/drivers/media/video/v4l2-int-device.c +++ b/drivers/media/video/v4l2-int-device.c | |||
@@ -34,21 +34,13 @@ static LIST_HEAD(int_list); | |||
34 | 34 | ||
35 | static void v4l2_int_device_try_attach_all(void) | 35 | static void v4l2_int_device_try_attach_all(void) |
36 | { | 36 | { |
37 | struct list_head *head_master; | 37 | struct v4l2_int_device *m, *s; |
38 | |||
39 | list_for_each(head_master, &int_list) { | ||
40 | struct list_head *head_slave; | ||
41 | struct v4l2_int_device *m = | ||
42 | list_entry(head_master, struct v4l2_int_device, head); | ||
43 | 38 | ||
39 | list_for_each_entry(m, &int_list, head) { | ||
44 | if (m->type != v4l2_int_type_master) | 40 | if (m->type != v4l2_int_type_master) |
45 | continue; | 41 | continue; |
46 | 42 | ||
47 | list_for_each(head_slave, &int_list) { | 43 | list_for_each_entry(s, &int_list, head) { |
48 | struct v4l2_int_device *s = | ||
49 | list_entry(head_slave, | ||
50 | struct v4l2_int_device, head); | ||
51 | |||
52 | if (s->type != v4l2_int_type_slave) | 44 | if (s->type != v4l2_int_type_slave) |
53 | continue; | 45 | continue; |
54 | 46 | ||