[PATCH] media: videobuf2: Use 'unsigned int' instead of just 'unsigned'.

From: Jilin Yuan
Date: Wed Aug 31 2022 - 21:20:21 EST


'unsigned int' should be clearer than 'unsigned'.

Signed-off-by: Jilin Yuan <yuanjilin@xxxxxxxxxx>
---
drivers/media/common/videobuf2/videobuf2-v4l2.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/media/common/videobuf2/videobuf2-v4l2.c b/drivers/media/common/videobuf2/videobuf2-v4l2.c
index f26cb8586bd4..2e1adf88aa55 100644
--- a/drivers/media/common/videobuf2/videobuf2-v4l2.c
+++ b/drivers/media/common/videobuf2/videobuf2-v4l2.c
@@ -754,11 +754,11 @@ EXPORT_SYMBOL_GPL(vb2_prepare_buf);

int vb2_create_bufs(struct vb2_queue *q, struct v4l2_create_buffers *create)
{
- unsigned requested_planes = 1;
- unsigned requested_sizes[VIDEO_MAX_PLANES];
+ unsigned int requested_planes = 1;
+ unsigned int requested_sizes[VIDEO_MAX_PLANES];
struct v4l2_format *f = &create->format;
int ret = vb2_verify_memory_type(q, create->memory, f->type);
- unsigned i;
+ unsigned int i;

fill_buf_caps(q, &create->capabilities);
validate_memory_flags(q, create->memory, &create->flags);
--
2.36.1