linux_dsm_epyc7002/drivers/media/pci
Julia Lawall a357a78407 saa7134: drop unnecessary list_empty
list_for_each_safe is able to handle an empty list.
The only effect of avoiding the loop is not initializing the
index variable.
Drop list_empty tests in cases where these variables are not
used.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

<smpl>
@@
expression x,e;
iterator name list_for_each_safe;
statement S;
identifier i,j;
@@

-if (!(list_empty(x))) {
   list_for_each_safe(i,j,x) S
- }
 ... when != i
     when != j
(
  i = e;
|
? j = e;
)
</smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2020-09-01 13:37:53 +02:00
..
b2c2 treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
bt8xx media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
cobalt media: pci: cobalt-i2c.c: fix comparison of 0/1 to bool variable 2020-08-29 08:04:01 +02:00
cx18 media: cx18: Replace http links with https ones 2020-07-19 14:00:32 +02:00
cx88 media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
cx23885 media: pci: cx23855-video.c: remove duplicate argument in 'or' 2020-08-29 08:03:03 +02:00
cx25821 media: cx25821: use generic power management 2020-07-19 14:23:44 +02:00
ddbridge media: ddbridge: use the ddbridge's own dummy fe driver 2020-04-14 10:29:05 +02:00
dm1105 media: delete unused proc_fs.h include 2019-10-07 07:31:36 -03:00
dt3155 media: media/pci: use vb2_video_unregister_device() 2020-08-28 15:01:54 +02:00
intel media: media/pci: use vb2_video_unregister_device() 2020-08-28 15:01:54 +02:00
ivtv media updates for v5.9-rc1 2020-08-07 13:00:53 -07:00
mantis media: mantis: convert tasklets to use new tasklet_setup() API 2020-08-29 08:11:19 +02:00
meye media: meye: fix missing pm_mchip_mode field 2020-08-06 11:27:05 +02:00
netup_unidvb treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
ngene media: ngene: convert tasklets to use new tasklet_setup() API 2020-08-29 08:11:47 +02:00
pluto2 treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 157 2019-05-30 11:26:37 -07:00
pt1 media: pci: Use dev_get_drvdata where possible 2019-07-25 06:45:10 -04:00
pt3 media: pci: Use dev_get_drvdata where possible 2019-07-25 06:45:10 -04:00
saa7134 saa7134: drop unnecessary list_empty 2020-09-01 13:37:53 +02:00
saa7146 media: media/pci: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:53:50 +01:00
saa7164 media: pci: saa7164-core.c: replace if (cond) BUG() with BUG_ON() 2020-08-29 07:50:03 +02:00
smipcie media: smipcie: convert tasklets to use new tasklet_setup() API 2020-08-29 08:12:06 +02:00
solo6x10 media: Use fallthrough pseudo-keyword 2020-08-29 08:35:27 +02:00
sta2x11 media: media/pci: use vb2_video_unregister_device() 2020-08-28 15:01:54 +02:00
ttpci media: ttpci: convert tasklets to use new tasklet_setup() API 2020-08-29 08:12:30 +02:00
tw68 media: tw68: use generic power management 2020-07-19 14:24:57 +02:00
tw686x media: media/pci: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:53:50 +01:00
tw5864 media: tw5864: check status of tw5864_frameinterval_get 2020-08-29 08:16:16 +02:00
Kconfig Revert "media: Kconfig: better support hybrid TV devices" 2020-04-14 11:00:30 +02:00
Makefile media: zoran: move to staging in preparation for removal 2018-05-25 15:21:36 -04:00