linux/drivers/media
Hans Verkuil 99f9cd2e25 media: platform: renesas-ceu: drop buf NULL check
Since start_streaming is only called if there are at least two
buffers queued, the ceudev->capture list will never be empty, so
the check whether there are no buffers can be dropped.

Note that the '!buf' check was wrong in any case, if we wanted to
check for an empty list it should have used list_empty().

This fixes this smatch warning:

drivers/media/platform/renesas/renesas-ceu.c:705 ceu_start_streaming() warn: can 'buf' even be NULL?

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2023-06-09 16:08:09 +01:00
..
cec Linux 6.4-rc5 2023-06-09 10:12:41 +01:00
common media: common: saa7146: Avoid a leak in vmalloc_to_sg() 2023-05-25 16:21:20 +02:00
dvb-core media: mc: Make media_get_pad_index() use pad type flag 2023-05-25 16:21:22 +02:00
dvb-frontends media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
firewire media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
i2c media: hi846: fix usage of pm_runtime_get_if_in_use() 2023-05-25 16:21:23 +02:00
mc media: mc: Make media_get_pad_index() use pad type flag 2023-05-25 16:21:22 +02:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci media: pci: cx18-av-vbi: Replace one-element array with flexible-array member 2023-05-26 10:57:20 +01:00
platform media: platform: renesas-ceu: drop buf NULL check 2023-06-09 16:08:09 +01:00
radio media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
rc Driver core changes for 6.4-rc1 2023-04-27 11:53:57 -07:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
tuners media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
usb media: usb: as102: drop as102_dev NULL check 2023-06-09 16:07:30 +01:00
v4l2-core media: v4l2-mc: Drop subdev check in v4l2_create_fwnode_links_to_pad() 2023-06-02 18:45:24 +01:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00