]> git.baikalelectronics.ru Git - kernel.git/commit
media: atomisp: handle errors at sh_css_create_isp_params()
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Nov 2021 23:04:09 +0000 (23:04 +0000)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 16 Nov 2021 14:37:09 +0000 (14:37 +0000)
commit3eab1fff8435ae77ee69d0e70b471bc1e343fea9
treed267a715282cb5ea05895c9eee557fc6362c2b93
parent5d04b728cb29b4cd83c7e6a8e9b258b007b52488
media: atomisp: handle errors at sh_css_create_isp_params()

The succ var tracks memory allocation erros on this function.

Fix it, in order to stop this W=1 Werror in clang:

drivers/staging/media/atomisp/pci/sh_css_params.c:2430:7: error: variable 'succ' set but not used [-Werror,-Wunused-but-set-variable]
        bool succ = true;
             ^

Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/sh_css_params.c