summaryrefslogtreecommitdiff
path: root/tools/lib
diff options
context:
space:
mode:
authorRicardo Ribalda <ribalda@chromium.org>2025-10-20 23:18:13 +0300
committerHans Verkuil <hverkuil+cisco@kernel.org>2025-11-13 12:57:52 +0300
commit15ac3d54a8296e027bf176115e36c3cb8c55c8cc (patch)
tree6097274066414be686b6be1de2d4291053c10c86 /tools/lib
parente687f5cae591dba4a0a968c24cbe7b6141027d93 (diff)
downloadlinux-15ac3d54a8296e027bf176115e36c3cb8c55c8cc.tar.xz
media: i2c: imx214: Rearrange control initialization
Smatch is confused by the control initialization logic. It assumes that there can be a case where imx214->link_freq can be NULL and ctrls_init returns 0. Re-arrange the function to make smatch happy. This patch fixes this smatch error: drivers/media/i2c/imx214.c:1109 imx214_ctrls_init() error: we previously assumed 'imx214->link_freq' could be null (see line 1017) Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'tools/lib')
0 files changed, 0 insertions, 0 deletions