]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: raspberrypi: use int type to store negative error codes
authorQianfeng Rong <rongqianfeng@vivo.com>
Wed, 27 Aug 2025 12:39:11 +0000 (20:39 +0800)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 9 Sep 2025 13:59:16 +0000 (15:59 +0200)
commit27296c1f0027a9b35faa7af71d7490c96409551e
treea6b3477d781c301455f238659e0e0f6eafc22963
parentbacd713145443dce7764bb2967d30832a95e5ec8
media: raspberrypi: use int type to store negative error codes

Use int instead of unsigned int for the 'ret' variable in csi2_init() to
store negative error codes or zero returned by media_entity_pads_init().

No effect on runtime.

Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/raspberrypi/rp1-cfe/csi2.c