[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220901012255.26586-1-yuanjilin@cdjrlc.com>
Date: Thu, 1 Sep 2022 09:22:55 +0800
From: Jilin Yuan <yuanjilin@...rlc.com>
To: tfiga@...omium.org, m.szyprowski@...sung.com, mchehab@...nel.org
Cc: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
Jilin Yuan <yuanjilin@...rlc.com>
Subject: [PATCH] media: videobuf2: Use 'unsigned int' instead of just 'unsigned'.
'unsigned int' should be clearer than 'unsigned'.
Signed-off-by: Jilin Yuan <yuanjilin@...rlc.com>
---
drivers/media/common/videobuf2/videobuf2-core.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/media/common/videobuf2/videobuf2-core.c b/drivers/media/common/videobuf2/videobuf2-core.c
index b203c1e26353..abfd84173df6 100644
--- a/drivers/media/common/videobuf2/videobuf2-core.c
+++ b/drivers/media/common/videobuf2/videobuf2-core.c
@@ -1590,7 +1590,7 @@ static int vb2_start_streaming(struct vb2_queue *q)
* should be returned to vb2 in start_streaming().
*/
if (WARN_ON(atomic_read(&q->owned_by_drv_count))) {
- unsigned i;
+ unsigned int i;
/*
* Forcefully reclaim buffers if the driver did not
@@ -2738,7 +2738,7 @@ static size_t __vb2_perform_fileio(struct vb2_queue *q, char __user *data, size_
* else is able to provide this information with the write() operation.
*/
bool copy_timestamp = !read && q->copy_timestamp;
- unsigned index;
+ unsigned int index;
int ret;
dprintk(q, 3, "mode %s, offset %ld, count %zd, %sblocking\n",
@@ -2914,8 +2914,8 @@ static int vb2_thread(void *data)
struct vb2_queue *q = data;
struct vb2_threadio_data *threadio = q->threadio;
bool copy_timestamp = false;
- unsigned prequeue = 0;
- unsigned index = 0;
+ unsigned int prequeue = 0;
+ unsigned int index = 0;
int ret = 0;
if (q->is_output) {
--
2.36.1
Powered by blists - more mailing lists