From patchwork Sun Aug 18 20:05:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sylwester Nawrocki X-Patchwork-Id: 2846228 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5658E9F271 for ; Sun, 18 Aug 2013 20:05:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6238720221 for ; Sun, 18 Aug 2013 20:05:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 924052019C for ; Sun, 18 Aug 2013 20:05:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752633Ab3HRUF2 (ORCPT ); Sun, 18 Aug 2013 16:05:28 -0400 Received: from mail-ee0-f50.google.com ([74.125.83.50]:56193 "EHLO mail-ee0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751342Ab3HRUF2 (ORCPT ); Sun, 18 Aug 2013 16:05:28 -0400 Received: by mail-ee0-f50.google.com with SMTP id d51so1807481eek.9 for ; Sun, 18 Aug 2013 13:05:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version:content-type :content-transfer-encoding; bh=on4aP5bM6L3mfG5E0xSX4cgeJ/KPDXtapO7TYFA7SdE=; b=CE7cePN889rcg1bgSg5QrR073wW6o/jpH30Ma2KCcEUDV/OmgsVHJr0yjGp7tw0ohU qdlxG+MHnvrwN+eUynhBcXEEyxMO1ZPkBWanj0tG4F/AnladhMH6eoSlOzqGj3RrPHwj TIPlJbK8GW/raW9iYrqwodSo6AFpjXmT9yRrT8+E/Y1GHmMeBDVJ8MPPNkwU8zE8z5mv vxTnRMreUM4TnvZfaTw7DzjgZsKdczjJuDdlMWr/jgauHwZjY8SVXvK/2da2OhpqPKrK sNSrwns3urawtxlyYf6DX/C09riCcc9KcF3K33by1xx/TJkzcWShsQ+KrW+WMyMn3YCq /WUQ== X-Received: by 10.15.100.198 with SMTP id bn46mr16290870eeb.11.1376856327147; Sun, 18 Aug 2013 13:05:27 -0700 (PDT) Received: from localhost.localdomain (093105185086.warszawa.vectranet.pl. [93.105.185.86]) by mx.google.com with ESMTPSA id a6sm12249749eei.10.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 18 Aug 2013 13:05:26 -0700 (PDT) From: Sylwester Nawrocki To: linux-media@vger.kernel.org Cc: Sylwester Nawrocki , Arun Kumar K Subject: [PATCH] v4l2-ctrl: Suppress build warning from v4l2_ctrl_new_std_menu() Date: Sun, 18 Aug 2013 22:05:19 +0200 Message-Id: <1376856319-5110-1-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.4.1 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham 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 Prevent following build warning: drivers/media/v4l2-core/v4l2-ctrls.c: In function ‘v4l2_ctrl_new_std_menu’: drivers/media/v4l2-core/v4l2-ctrls.c:1768:15: warning: 'qmenu_int_len’ may be used uninitialized in this function Cc: Arun Kumar K Signed-off-by: Sylwester Nawrocki --- drivers/media/v4l2-core/v4l2-ctrls.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/media/v4l2-core/v4l2-ctrls.c b/drivers/media/v4l2-core/v4l2-ctrls.c index c6dc1fd..c3f0803 100644 --- a/drivers/media/v4l2-core/v4l2-ctrls.c +++ b/drivers/media/v4l2-core/v4l2-ctrls.c @@ -1763,9 +1763,9 @@ struct v4l2_ctrl *v4l2_ctrl_new_std_menu(struct v4l2_ctrl_handler *hdl, { const char * const *qmenu = NULL; const s64 *qmenu_int = NULL; + unsigned int qmenu_int_len = 0; const char *name; enum v4l2_ctrl_type type; - unsigned int qmenu_int_len; s32 min; s32 step; u32 flags;