kernel_optimize_test/drivers/media/pci/saa7134
Jakob Koschel ebd4f1501e media: saa7134: fix incorrect use to determine if list is empty
[ Upstream commit 9f1f4b642451d35667a4dc6a9c0a89d954b530a3 ]

'dev' will *always* be set by list_for_each_entry().
It is incorrect to assume that the iterator value will be NULL if the
list is empty.

Instead of checking the pointer it should be checked if
the list is empty.

Fixes: 79dd0c69f0 ("V4L: 925: saa7134 alsa is now a standalone module")
Signed-off-by: Jakob Koschel <jakobkoschel@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:40:10 +02:00
..
Kconfig
Makefile
saa7134-alsa.c
saa7134-cards.c
saa7134-core.c
saa7134-dvb.c
saa7134-empress.c
saa7134-go7007.c
saa7134-i2c.c
saa7134-input.c
saa7134-reg.h
saa7134-ts.c
saa7134-tvaudio.c
saa7134-vbi.c
saa7134-video.c
saa7134.h