Message ID | 20240604051120.9441-2-nas.chung@chipsnmedia.com (mailing list archive) |
---|---|
State | Under Review |
Delegated to: | Stanimir Varbanov |
Headers |
Received: from ny.mirrors.kernel.org ([147.75.199.223]) by linuxtv.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from <linux-media+bounces-12495-patchwork=linuxtv.org@vger.kernel.org>) id 1sEMVd-0007us-2r for patchwork@linuxtv.org; Tue, 04 Jun 2024 05:14:58 +0000 Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 775011C23D47 for <patchwork@linuxtv.org>; Tue, 4 Jun 2024 05:14:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B62E613E3EF; Tue, 4 Jun 2024 05:11:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chipsnmedia.com header.i=@chipsnmedia.com header.b="eu7lE/HN" X-Original-To: linux-media@vger.kernel.org Received: from SEVP216CU002.outbound.protection.outlook.com (mail-koreacentralazon11022018.outbound.protection.outlook.com [52.101.154.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DC4413DDAB; Tue, 4 Jun 2024 05:11:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.154.18 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717477906; cv=fail; b=QfU6s9kcOYRU9FTopJZYPKqjNarGeTXWFv/etE33OVgrKWxVsS7YfMYgZWevuSygtQ1Jqq1jPL5+FfnfrXnNhZp7HENRI63Z/v3uC8qb3oXXvAYeATjqa2gKeFBpQx9QCzaqw+Gi3ZuXFIIG76ejGZvcxb5VVAm6hX6SK/ZomVc= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717477906; c=relaxed/simple; bh=fz8DxEF3MjNB5/0zQz8VN4EFVP81ZnD5LFAmEqE9fJY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=Kf8BoDxYnv7DcdgwurZhYQ3Xs2FH2bXftm6KhpVOqEVoAiLLXVW/DMPhnF10y2uWmtbQhdSXAYjwYYPf84WzRmHeKNlQUKuFy3c3BIS9IS8aInYsnL+M0PulAd5c3yPREVwaUNW3My92T+Mz0rdp3M8IeSZmondSgACRTNipdJA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chipsnmedia.com; spf=pass smtp.mailfrom=chipsnmedia.com; dkim=pass (1024-bit key) header.d=chipsnmedia.com header.i=@chipsnmedia.com header.b=eu7lE/HN; arc=fail smtp.client-ip=52.101.154.18 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=chipsnmedia.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chipsnmedia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QjDakmg6smbeqE42FE88SKFMAvfEDGvB5F/9SOvNWdczXMHCqgDDdB72KrOGkkxWCfC9ZLX+iQF4pvUSt5A67/4D/2wWcrnfWvi2pyE+vKsOfcSUAC+brabpJcHlBVdCzcnAOAOAngdPdsBjqZrvncdP24mUjbPrIb5UILmUt90B1zEwPoxUh1VGuVUZAvpik8WDX4swz2xKX2C+RfIhKzsUI3R1vngwa+6xJpC5Zaqoi19PQLmxNO6/GZA3cQ75QPmelm9SveeQwfBJVjK3n11BEhVkMRsuMNlkl6pJpeGtyX+4t22c2sF4/AK0jSplUyk/SAtUvzKxIVwRfhvU4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=98IokyhvF5viXgCvgvP+4isEJFmV3dVZvFJiOFsVBkE=; b=DCVh36HekGNxI4+dxSqj5QhTXIekOyhbYlaIvVaOCmaqLiNkIphwPX7+GbXzkPfBq/XeG7Jrb13qwkCqfvUwOxO8nuoj0PmQoXC0cmUZ+IJaO90r8m1qFDkDgMtjiNmc2ZML+mmgXmdrwaWDx4I1RPciLpHmJZx0GQIGwgRXQZF00HbfROwY50p2I8gsZzMeBRlurCmDXyZAvmhUAO2Me5QkccTSjVvtPqlbflKO7sHtbP337TO54d0QTFsc5AVDexKoszN33U0sWQDOALiMpVbC7s8VCHNqFAfiJFxvpRDs+SRMuwFWP3XyrX/jBva7coC+Dky37fkHjfjlH+vNYQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=chipsnmedia.com; dmarc=pass action=none header.from=chipsnmedia.com; dkim=pass header.d=chipsnmedia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chipsnmedia.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=98IokyhvF5viXgCvgvP+4isEJFmV3dVZvFJiOFsVBkE=; b=eu7lE/HNHl+vDNU0ALcn1nhmVeHNd6StdrHdRi7ivlQEKAT8VIm9jVgpK/5jUrwuqgVgsk314hHJE4lY1sQ9q/Dz5ENOvMzZWKBaIW+g4kN7YFYSZdxXo9Hss3Nd61dCSlzbFc5EE0zTVrbzOhS11uKQXAURCv01Rf8OtmYP4MI= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=chipsnmedia.com; Received: from SL2P216MB1246.KORP216.PROD.OUTLOOK.COM (2603:1096:101:a::9) by SE2P216MB1537.KORP216.PROD.OUTLOOK.COM (2603:1096:101:2c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.27; Tue, 4 Jun 2024 05:11:41 +0000 Received: from SL2P216MB1246.KORP216.PROD.OUTLOOK.COM ([fe80::9e3d:ee20:8cc7:3c07]) by SL2P216MB1246.KORP216.PROD.OUTLOOK.COM ([fe80::9e3d:ee20:8cc7:3c07%4]) with mapi id 15.20.7633.021; Tue, 4 Jun 2024 05:11:41 +0000 From: Nas Chung <nas.chung@chipsnmedia.com> To: mchehab@kernel.org, hverkuil@xs4all.nl, bryan.odonoghue@linaro.org, linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Nas Chung <nas.chung@chipsnmedia.com> Subject: [PATCH v3 2/3] media: qcom: venus: Fix uninitialized variable warning Date: Tue, 4 Jun 2024 14:11:19 +0900 Message-Id: <20240604051120.9441-2-nas.chung@chipsnmedia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240604051120.9441-1-nas.chung@chipsnmedia.com> References: <20240604051120.9441-1-nas.chung@chipsnmedia.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SE2P216CA0068.KORP216.PROD.OUTLOOK.COM (2603:1096:101:118::11) To SL2P216MB1246.KORP216.PROD.OUTLOOK.COM (2603:1096:101:a::9) Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: <linux-media.vger.kernel.org> List-Subscribe: <mailto:linux-media+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-media+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SL2P216MB1246:EE_|SE2P216MB1537:EE_ X-MS-Office365-Filtering-Correlation-Id: 0c2ee957-93d7-4623-b71e-08dc8454d1dd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft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uB0THAX2pdFXXUjsDgJw6D4A4A5vUZWVeN4KI20dAF8FzdSMYq/PZWJzNRrQeeYumslGqsFB5Tp4SXF+gMBwOcWw+HvhXdcYnsj1fYnb3YufbFuKyjt+PSR2cKeEzj5FaEMXt7hhTbZYJAlW3fNdjJrCwbZR8HVKSLBMThaBlfvj0wMYg80pawoZjMZXxffPgo+ezFjqZSVEfvC7cxpQZGAmczb47QaBF9BhVFCZSHKph/lcU4OkcPAHq8i8qbPu6Abt0eG740jdz85oYI0u1MQH1O2Z+EbtVj6Uarb9+iLOG53C8H5nrVPO5yP0Qe+i95t7Nrb1fukC7vPAf2/dxzwwJcSAuluWqfGN4qQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SL2P216MB1246.KORP216.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(376005)(52116005)(366007)(1800799015)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Dg5NBeUreFMnKZ1qcxgIJhDqMbs+Ni8VyZzVQEdAiz5B9nRax3V3oO1Ef8mNg8LZWCrbg0DjrZxzfTlPbJVhFa99BtAGBfKjJ2JXtkvsACGyu0V7RJrdEKgxd5UN7t+/WAmNDe9bKN7O9rWNOw7spcWZvTCCTJYFhREv4IfKuyVZ/Ntjk50zBzX3r3xp55qkp9KdRyRpqDMmIbFzh1Ansj8xPFrX5+mFL/orceh8FaNHul2xIckrzCIGQOm4FmmQxGIT7AhH00ixa+Iyf8+aq7gWUq6yfk+jKrteaBTEGlT8Hx2rXYqmZJ1Iaiu6Pvvm/jVWVWzakPtOmenXMiKNBj/bei+GE2wc1VdrxvPNPS2TyaxGOs22GU3Dog/FDRVFARFJT8EBNU9iwPA5CN0yTABv746g540210ju8hsvIXncoXGn4rPaaBNTZidKly+4IzNZXXTuWOvyNpLQUScUgTLz4pOdkJn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KohwsStGc9+qOslW2BaZtpK+T2wKJrOKaIzhxMQpD4aRvEocKQ+3DK4w7DpHUzNjRmoaxsE2IyPYI+6A== X-OriginatorOrg: chipsnmedia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0c2ee957-93d7-4623-b71e-08dc8454d1dd X-MS-Exchange-CrossTenant-AuthSource: SL2P216MB1246.KORP216.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 05:11:41.4100 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4d70c8e9-142b-4389-b7f2-fa8a3c68c467 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: SART16oRmPqgXB/LIyfObE7SVKA2ZnYnU5ZUSsbgS0+8JCfOxMfU5PtCAv9vAtTOtuHo/brNDrpL+SZtwlJgoh2sEsNxnGIzkh9kKRsbvGk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SE2P216MB1537 X-LSpam-Score: -2.6 (--) X-LSpam-Report: No, score=-2.6 required=5.0 tests=ARC_SIGNED=0.001,ARC_VALID=-0.1,BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,DMARC_MISSING=0.001,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,SPF_HELO_NONE=0.001,SPF_PASS=-0.001 autolearn=ham autolearn_force=no |
Series |
[v3,1/3] media: uapi: v4l: Change V4L2_TYPE_IS_CAPTURE condition
|
|
Commit Message
Nas Chung
June 4, 2024, 5:11 a.m. UTC
Avoid uninitialized variable when both V4L2_TYPE_IS_OUTPUT() and
V4L2_TYPE_IS_CAPTURE() return false.
Signed-off-by: Nas Chung <nas.chung@chipsnmedia.com>
---
drivers/media/platform/qcom/venus/vdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c index 29130a9441e7..283d3c21c2b5 100644 --- a/drivers/media/platform/qcom/venus/vdec.c +++ b/drivers/media/platform/qcom/venus/vdec.c @@ -161,7 +161,7 @@ find_format_by_index(struct venus_inst *inst, unsigned int index, u32 type) if (V4L2_TYPE_IS_OUTPUT(type)) { valid = venus_helper_check_codec(inst, fmt[i].pixfmt); - } else if (V4L2_TYPE_IS_CAPTURE(type)) { + } else { valid = venus_helper_check_format(inst, fmt[i].pixfmt); if (fmt[i].pixfmt == V4L2_PIX_FMT_QC10C &&