From patchwork Fri Oct 10 08:46:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacek Anaszewski X-Patchwork-Id: 5064151 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 60389C11AC for ; Fri, 10 Oct 2014 08:47:23 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9148320260 for ; Fri, 10 Oct 2014 08:47:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AD49C2010F for ; Fri, 10 Oct 2014 08:47:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751887AbaJJIrT (ORCPT ); Fri, 10 Oct 2014 04:47:19 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:39486 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752074AbaJJIrS (ORCPT ); Fri, 10 Oct 2014 04:47:18 -0400 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0ND800CXK0ESOQA0@mailout4.samsung.com> for linux-media@vger.kernel.org; Fri, 10 Oct 2014 17:47:16 +0900 (KST) X-AuditID: cbfee61a-f79c06d000004e71-65-54379d147b00 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id BB.09.20081.41D97345; Fri, 10 Oct 2014 17:47:16 +0900 (KST) Received: from AMDC2362.DIGITAL.local ([106.120.53.23]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0ND8004B20E3K890@mmp1.samsung.com>; Fri, 10 Oct 2014 17:47:16 +0900 (KST) From: Jacek Anaszewski To: linux-media@vger.kernel.org Cc: s.nawrocki@samsung.com, Jacek Anaszewski Subject: [PATCH] s5p-jpeg: Avoid -Wuninitialized warning in s5p_jpeg_parse_hdr Date: Fri, 10 Oct 2014 10:46:49 +0200 Message-id: <1412930809-28722-1-git-send-email-j.anaszewski@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrBJMWRmVeSWpSXmKPExsVy+t9jAV2RueYhBt1PdSx6rz5ntOjZsJXV 4vCbdlYHZo++LasYPT5vkgtgiuKySUnNySxLLdK3S+DK2Dizm73gLVvFzMXtjA2MN1m7GDk5 JARMJH53rmSDsMUkLtxbD2RzcQgJLGKU2Pj/GDuE084k0du1jxGkik3AUOLni9dMILaIgLzE k94bYN3MAu4Sa1smgk0VFvCT+H/lCZjNIqAqsfPqcrBeXgEPiUX3/rN0MXIAbVOQmDPJZgIj 9wJGhlWMoqkFyQXFSem5hnrFibnFpXnpesn5uZsYwf59JrWDcWWDxSFGAQ5GJR7eCzLmIUKs iWXFlbmHGCU4mJVEePVNgUK8KYmVValF+fFFpTmpxYcYpTlYlMR5D7RaBwoJpCeWpGanphak FsFkmTg4pRoYy0u6ZnI+bd4v19jEOTlhTc1hGedlYmrPvx51WrbZ/KfaqQW3z244FHwmL+Zi BVsKk5jhgjVeEWsFNP0D3+4Xjeeu2m5S3eT9bZKPZNTFmRaRn+7vfrRj88ye9VEXPmye8HLL zqt/pG/U57kxSV16bJ3+ot/OP+LX0iXNu1fcZrPaemeRu8t0bSWW4oxEQy3mouJEAB7+Fqnr AQAA Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Initialize components variable in order to avoid the possibility of using it uninitialized. Signed-off-by: Jacek Anaszewski --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c index e66acbc..91dc351 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c @@ -893,7 +893,7 @@ static bool s5p_jpeg_parse_hdr(struct s5p_jpeg_q_data *result, unsigned long buffer, unsigned long size, struct s5p_jpeg_ctx *ctx) { - int c, components, notfound; + int c, components = 0, notfound; unsigned int height, width, word, subsampling = 0; long length; struct s5p_jpeg_buffer jpeg_buffer;