From patchwork Thu Sep 1 01:19:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jilin Yuan X-Patchwork-Id: 602605 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68FA3ECAAD1 for ; Thu, 1 Sep 2022 01:20:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232406AbiIABUR (ORCPT ); Wed, 31 Aug 2022 21:20:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232178AbiIABUQ (ORCPT ); Wed, 31 Aug 2022 21:20:16 -0400 Received: from smtpbg.qq.com (bg4.exmail.qq.com [43.155.67.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EC8F2DAA4; Wed, 31 Aug 2022 18:20:10 -0700 (PDT) X-QQ-mid: bizesmtp71t1661995206t3v7x6o2 Received: from localhost.localdomain ( [182.148.14.80]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 01 Sep 2022 09:20:05 +0800 (CST) X-QQ-SSF: 01000000000000D0F000000A0000000 X-QQ-FEAT: 4rCmCcmdMHfaY1WQWesDmjP4jvXA66jlw2+1CTnfx5ssoXmG6o5kmyrWaDmto Ny6qgLaw2s0aaRdK0m3f5m0LWgRsZVZ5+4YhyfgtANlk+ES9p0ksz54jPtL0vvTbu6JJ8Zk zJDYB1VlP0edJLEXlOwl4nxfS/DGAdZC4ArbkEW9oKcA1mkPSErvBuYpURv0NyfdPDg96G7 JtrIluaoYqtYGUdVZR0XfCcAIw/Gx5GsFA8F4laZ8VGG5Jc4YUSvAcsAQe2t94DqATD61tw T70QBMs+nHmWQLwiI5MGQIF27DKnRnaJHfX/SIKUz8T77ujtWCowbHBqw+j8z4du4f4kvqY pbezeCOQRDW4xbf6nLNmCRghNjcY1sPe96HJbfWo8Qnb7LMYlGqSS+/vhHPIg== X-QQ-GoodBg: 0 From: Jilin Yuan To: tfiga@chromium.org, m.szyprowski@samsung.com, mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Jilin Yuan Subject: [PATCH] media: videobuf2: Use 'unsigned int' instead of just 'unsigned'. Date: Thu, 1 Sep 2022 09:19:58 +0800 Message-Id: <20220901011958.26027-1-yuanjilin@cdjrlc.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:cdjrlc.com:qybglogicsvr:qybglogicsvr4 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 'unsigned int' should be clearer than 'unsigned'. Signed-off-by: Jilin Yuan --- 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);