media: sun6i-csi: clarify return value, fix uninited variable and add missing static
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 28 Nov 2022 14:03:33 +0000 (14:03 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 6 Dec 2022 07:16:39 +0000 (07:16 +0000)
commitbc0cd1080a035ea64fd141f7f8138ca5373fb47b
tree44b90713eae3942791dfa4dc26fe63682d053923
parent5edd1b4d58105dc0ee61ed6aa9f22e88d8425b08
media: sun6i-csi: clarify return value, fix uninited variable and add missing static

This fixes three smatch warnings:

drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.c:629:15: warning: 'enabled' may be used uninitialized [-Wmaybe-uninitialized]
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.c:439 sun6i_csi_bridge_s_stream() warn: missing error code 'ret'
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.c:682 sun6i_csi_bridge_notifier_bound() error: uninitialized symbol 'enabled'.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/sunxi/sun6i-csi/sun6i_csi_bridge.c