media: sun6i-isp: proc: Fix return code handling in stream off path
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Thu, 8 Dec 2022 14:20:01 +0000 (15:20 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Wed, 14 Dec 2022 18:12:31 +0000 (18:12 +0000)
commit504307f2b3ae2625ed591efe073c2d14d568dfc8
treee5f978cd9b96afecf4603c59e37dd38a5da4ebef
parent761ebebabd0953fde1e6b77d6ff54356dc1639c4
media: sun6i-isp: proc: Fix return code handling in stream off path

Explicitly set ret to zero on disable path to avoid a related smatch
warning. This makes initialization at declaration useless.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Fixes: e3185e1d7c14 ("media: staging: media: Add support for the Allwinner A31 ISP")
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_proc.c