linux-xiaomi-chiron/drivers/media/platform
Hans Verkuil e39cc49602 media: sunxi: sun6i_mipi_csi2.c/sun8i_a83t_mipi_csi2.c: clarify error handling
Both sun6i_mipi_csi2.c and sun8i_a83t_mipi_csi2.c have the same issue:
the comment before the ret = 0 assignment is incorrect, drop it and
always assign the result of the v4l2_subdev_call(..., 0) to ret.

In the disable label check for !on and set ret to 0 in that case.

This fixes two smatch warnings:

drivers/media/platform/sunxi/sun6i-mipi-csi2/sun6i_mipi_csi2.c:193 sun6i_mipi_csi2_s_stream() warn: missing error code 'ret'
drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/sun8i_a83t_mipi_csi2.c:225 sun8i_a83t_mipi_csi2_s_stream() warn: missing error code 'ret'

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-07-27 20:26:31 +02:00
..
allegro-dvt media: v4l: ioctl: Set bus_info in v4l_querycap() 2022-04-24 08:07:08 +01:00
amlogic media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
amphion media: amphion: only insert the first sequence startcode for vc1l format 2022-07-08 18:18:49 +01:00
aspeed media: aspeed: Fix an error handling path in aspeed_video_probe() 2022-05-13 09:13:17 +02:00
atmel media: Replace dependency on VIDEO_V4L2_SUBDEV_API with select 2022-07-15 15:19:48 +01:00
cadence media: cadence: cdns-csi2tx: Use mipi-csi2.h 2022-05-13 11:02:20 +02:00
chips-media media: coda: limit frame interval enumeration to supported encoder frame sizes 2022-05-13 11:02:20 +02:00
intel media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
marvell media: v4l: ioctl: Set bus_info in v4l_querycap() 2022-04-24 08:07:08 +01:00
mediatek media: mediatek: vcodec: Use vb2_find_buffer 2022-07-17 11:11:44 +01:00
nvidia media: tegra-vde: Use vb2_find_buffer 2022-07-17 11:12:21 +01:00
nxp media: imx: imx-mipi-csis: Implement the .get_frame_desc() operation 2022-07-16 08:43:15 +01:00
qcom media: mc-entity: Rename media_entity_remote_pad() to media_pad_remote_pad_first() 2022-07-17 11:21:35 +01:00
renesas media: mc-entity: Rename media_entity_remote_pad() to media_pad_remote_pad_first() 2022-07-17 11:21:35 +01:00
rockchip media: rkisp1: debug: Add dump file in debugfs for MI main path registers 2022-07-17 12:34:43 +01:00
samsung media: mc-entity: Rename media_entity_remote_pad() to media_pad_remote_pad_first() 2022-07-17 11:21:35 +01:00
st media: mc-entity: Rename media_entity_remote_pad() to media_pad_remote_pad_first() 2022-07-17 11:21:35 +01:00
sunxi media: sunxi: sun6i_mipi_csi2.c/sun8i_a83t_mipi_csi2.c: clarify error handling 2022-07-27 20:26:31 +02:00
ti media: mc-entity: Rename media_entity_remote_pad() to media_pad_remote_pad_first() 2022-07-17 11:21:35 +01:00
via media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
xilinx media: mc-entity: Rename media_entity_remote_pad() to media_pad_remote_pad_first() 2022-07-17 11:21:35 +01:00
Kconfig media: Kconfig: cleanup VIDEO_DEV dependencies 2022-03-18 05:58:35 +01:00
m2m-deinterlace.c media: media/platform: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:54:14 +01:00
Makefile media: platform: Create vendor/{Makefile,Kconfig} files 2022-03-18 05:58:35 +01:00
video-mux.c media: mc-entity: Rename media_entity_remote_pad() to media_pad_remote_pad_first() 2022-07-17 11:21:35 +01:00