lkml.org 
[lkml]   [2022]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] media: videobuf2: Use 'unsigned int' instead of just 'unsigned'.
Date
'unsigned int' should be clearer than 'unsigned'.

Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>
---
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
\
 
 \ /
  Last update: 2022-09-01 03:20    [W:0.063 / U:22.600 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site