linux/drivers/media/platform/ti/omap3isp
Tom Rix 6bf9691159 media: platform: return early if the iface is not handled
Clang static analysis reports this issue
ispcsiphy.c:63:14: warning: The left operand of '<<'
  is a garbage value
        reg |= mode << shift;
               ~~~~ ^
The iface switch-statement default case falls through
to ISP_INTERFACE_CCP2B_PHY1.  Which is later checked
to set the mode.  Since the default case is left out
of this check mode is never set.  Instead of falling
through and assuming a ISP_INTERFACE_CCP2B_PHY1
iface, return.

Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-05-13 11:02:18 +02:00
..
cfa_coef_table.h
gamma_table.h
isp.c
isp.h
ispccdc.c
ispccdc.h
ispccp2.c
ispccp2.h
ispcsi2.c
ispcsi2.h
ispcsiphy.c media: platform: return early if the iface is not handled 2022-05-13 11:02:18 +02:00
ispcsiphy.h
isph3a_aewb.c
isph3a_af.c
isph3a.h
isphist.c
isphist.h
isppreview.c
isppreview.h
ispreg.h
ispresizer.c
ispresizer.h
ispstat.c
ispstat.h
ispvideo.c
ispvideo.h
Kconfig
luma_enhance_table.h
Makefile
noise_filter_table.h
omap3isp.h