linux/drivers/staging/media
Sanjana Sanikommu 0d15252370 staging: media: imx: Replace list_entry with list_for_each_entry_safe
Challenge suggested by coccinelle.
Replace use of the combination of list_empty() and list_entry() with
list_for_each_entry_safe() to simplify the code.

Issue found using below Coccinelle script.

@@
expression E1;
identifier I1, I2;
type T;
iterator name list_for_each_entry_safe;
@@

T *I1;
+ T *tmp;
...
- while (list_empty(&E1) == 0)
+ list_for_each_entry_safe (I1, tmp, &E1, I2)
{
...when != T *I1;
- I1 = list_entry(E1.next, T, I2);
...
}

Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-04-01 19:28:07 +02:00
..
bcm2048 Staging/IIO driver patches for 4.21-rc1 2018-12-28 20:39:58 -08:00
davinci_vpfe Staging: media: davinci_vpfe: Convert macro 'IPIPE_S12Q8' into inline 2019-03-29 19:55:22 +01:00
imx staging: media: imx: Replace list_entry with list_for_each_entry_safe 2019-04-01 19:28:07 +02:00
ipu3 staging: media: ipu3: Avoid unnecessary blank line. 2019-03-29 17:10:17 +01:00
mt9t031 media: soc_camera: Move the mt9t031 under soc_camera directory 2019-02-18 12:13:49 -05:00
omap4iss media: staging: fix several typos 2019-03-01 09:47:24 -05:00
rockchip/vpu media: rockchip/vpu: Correct return type for mem2mem buffer helpers 2019-02-18 15:31:49 -05:00
soc_camera media: staging: fix several typos 2019-03-01 09:47:24 -05:00
sunxi media: cedrus: mpeg2: Use v4l2_m2m_get_vq helper for capture queue 2019-02-18 15:33:25 -05:00
tegra-vde staging: tegra-vde: remove unnecessary boilerplate license identifier text 2019-03-26 05:47:36 +09:00
zoran staging: media: zoran: Fix block comment style 2019-03-30 09:28:32 +01:00
Kconfig media: soc_camera: Move the mt9t031 under soc_camera directory 2019-02-18 12:13:49 -05:00
Makefile media: soc_camera: Move the mt9t031 under soc_camera directory 2019-02-18 12:13:49 -05:00