aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/v4l2-core/v4l2-async.c
diff options
context:
space:
mode:
authorRicardo Ribalda <[email protected]>2024-05-09 17:05:55 +0000
committerHans Verkuil <[email protected]>2024-06-04 06:31:22 +0000
commit984abe0b5794a2aca359bb61555351d2ec520d2a (patch)
treea8e8be6733ebd8a3b3aea76ccfe81bfc4168dfc5 /drivers/media/v4l2-core/v4l2-async.c
parentmedia: i2c: Fix imx412 exposure control (diff)
downloadkernel-984abe0b5794a2aca359bb61555351d2ec520d2a.tar.gz
kernel-984abe0b5794a2aca359bb61555351d2ec520d2a.zip
media: i2c: hi846: Fix V4L2_SUBDEV_FORMAT_TRY get_selection()
The current code does not return anything to the user. Although the code looks a bit dangerous (using a pointer without checking if it is valid), it should be fine. The core validates that sel->pad has a valid value. Fix the following smatch error: drivers/media/i2c/hi846.c:1854 hi846_get_selection() warn: statement has no effect 31 Fixes: e8c0882685f9 ("media: i2c: add driver for the SK Hynix Hi-846 8M pixel camera") Signed-off-by: Ricardo Ribalda <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> [Sakari Ailus: code -> core.] Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-async.c')
0 files changed, 0 insertions, 0 deletions