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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Jilin Yuan <yuanjilin@xxxxxxxxxx>
---
 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




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux