media: atomisp: print a warning if error while setting downscaler
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Sep 2020 13:10:38 +0000 (15:10 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 7 Sep 2020 14:03:34 +0000 (16:03 +0200)
commit8fae9dd6a1e385adc041fae236e62aaeb3ae38ca
tree4e9b64c2cb6efa2f69152e36eccb26ad8a2e2010
parenta80abc94dff78952c7989d42ea2b71825718957f
media: atomisp: print a warning if error while setting downscaler

As warned by gcc:

    drivers/staging/media/atomisp//pci/isp/kernels/dvs/dvs_1.0/ia_css_dvs.host.c:237:31: warning: variable ‘isp_data_ptr’ set but not used [-Wunused-but-set-variable]

ia_css_vf_configure() logic has an error var that detects troubles
when setting the kernel for downscaling. The driver just ignores
it, without producing any warning. Add at least a warning message
on such cases.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/isp/kernels/vf/vf_1.0/ia_css_vf.host.c