Commit 64627da
media: uvcvideo: Refactor iterators
Avoid using the iterators after the list_for_each() constructs.
This patch should be a NOP, but makes cocci, happier:
drivers/media/usb/uvc/uvc_ctrl.c:1861:44-50: ERROR: invalid reference to the index variable of the iterator on line 1850
drivers/media/usb/uvc/uvc_ctrl.c:2195:17-23: ERROR: invalid reference to the index variable of the iterator on line 2179
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>1 parent 2c7f7a3 commit 64627da
1 file changed
Lines changed: 13 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1850 | 1850 | | |
1851 | 1851 | | |
1852 | 1852 | | |
1853 | | - | |
| 1853 | + | |
| 1854 | + | |
| 1855 | + | |
| 1856 | + | |
| 1857 | + | |
1854 | 1858 | | |
| 1859 | + | |
1855 | 1860 | | |
1856 | 1861 | | |
1857 | 1862 | | |
1858 | 1863 | | |
1859 | 1864 | | |
1860 | | - | |
1861 | | - | |
1862 | | - | |
1863 | 1865 | | |
1864 | 1866 | | |
1865 | 1867 | | |
| |||
2165 | 2167 | | |
2166 | 2168 | | |
2167 | 2169 | | |
2168 | | - | |
| 2170 | + | |
2169 | 2171 | | |
2170 | 2172 | | |
2171 | 2173 | | |
| |||
2175 | 2177 | | |
2176 | 2178 | | |
2177 | 2179 | | |
2178 | | - | |
2179 | | - | |
2180 | | - | |
2181 | | - | |
2182 | | - | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
2183 | 2185 | | |
2184 | 2186 | | |
2185 | 2187 | | |
2186 | 2188 | | |
2187 | | - | |
| 2189 | + | |
2188 | 2190 | | |
2189 | 2191 | | |
2190 | 2192 | | |
| |||
0 commit comments