diff options
| author | Ricardo Ribalda <ribalda@chromium.org> | 2025-10-20 20:18:13 +0000 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2025-11-13 10:57:52 +0100 |
| commit | 15ac3d54a8296e027bf176115e36c3cb8c55c8cc (patch) | |
| tree | 6097274066414be686b6be1de2d4291053c10c86 /scripts/livepatch/git@git.tavy.me:linux.git | |
| parent | e687f5cae591dba4a0a968c24cbe7b6141027d93 (diff) | |
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 'scripts/livepatch/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
