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>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
bacd713145
commit
27296c1f00
@@ -525,7 +525,7 @@ static const struct v4l2_subdev_internal_ops csi2_internal_ops = {
|
||||
|
||||
int csi2_init(struct csi2_device *csi2, struct dentry *debugfs)
|
||||
{
|
||||
unsigned int ret;
|
||||
int ret;
|
||||
|
||||
spin_lock_init(&csi2->errors_lock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user