linux/drivers/media/platform/renesas
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
..
rcar-vin media: rcar-vin: Add support for R-Car V4H 2023-05-25 16:21:23 +02:00
rzg2l-cru media: platform: rzg2l-cru: rzg2l-csi2: Enclose the macro in parentheses 2023-05-25 16:21:19 +02:00
vsp1 media: Use designated initializers for all subdev pad ops 2023-04-12 09:46:07 +02:00
Kconfig media: platform: Add Renesas RZ/G2L MIPI CSI-2 receiver driver 2022-11-25 08:48:00 +00:00
Makefile media: platform: Add Renesas RZ/G2L MIPI CSI-2 receiver driver 2022-11-25 08:48:00 +00:00
rcar_drif.c media: rcar_drif: Convert to platform remove callback returning void 2023-04-11 16:59:16 +02:00
rcar_fdp1.c media: renesas: fdp1: Identify R-Car Gen2 versions 2023-05-25 16:21:23 +02:00
rcar_jpu.c media: Add common header file with JPEG marker definitions 2023-05-25 16:21:21 +02:00
rcar-fcp.c media: rcar-fcp: Convert to platform remove callback returning void 2023-04-11 16:59:16 +02:00
rcar-isp.c media: rcar-isp: Add support for R-Car V4H 2023-05-25 16:21:23 +02:00
renesas-ceu.c media: platform: renesas-ceu: drop buf NULL check 2023-06-09 16:08:09 +01:00
sh_vou.c media: sh_vou: Convert to platform remove callback returning void 2023-04-11 16:59:17 +02:00