From patchwork Sun Dec 30 10:50:16 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Meerwald-Stadler X-Patchwork-Id: 1919601 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id E2007DF23A for ; Sun, 30 Dec 2012 10:50:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754023Ab2L3KuT (ORCPT ); Sun, 30 Dec 2012 05:50:19 -0500 Received: from ns.pmeerw.net ([87.118.82.44]:39195 "EHLO pmeerw.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753025Ab2L3KuT (ORCPT ); Sun, 30 Dec 2012 05:50:19 -0500 Received: from sirene.lan (83-215-0-241.stadt.dyn.salzburg-online.at [83.215.0.241]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: pmeerw) by pmeerw.net (Postfix) with ESMTPSA id 1BF3AC50123; Sun, 30 Dec 2012 11:50:18 +0100 (CET) From: Peter Meerwald To: linux-omap@vger.kernel.org Cc: tomi.valkeinen@ti.com, Peter Meerwald , Vaibhav Hiremath Subject: [PATCH] omap_vout: Fix mode build warning Date: Sun, 30 Dec 2012 11:50:16 +0100 Message-Id: <1356864617-22410-1-git-send-email-pmeerw@pmeerw.net> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org drivers/media/platform/omap/omap_vout.c: In function ‘omapvid_init’: drivers/media/platform/omap/omap_vout.c:380:17: warning: ‘mode’ may be used uninitialized in this function [-Wuninitialized] drivers/media/platform/omap/omap_vout.c:330:23: note: ‘mode’ was declared here this issue was raised in May 2012 already (http://comments.gmane.org/gmane.linux.drivers.video-input-infrastructure/48617) Signed-off-by: Peter Meerwald Cc: Vaibhav Hiremath --- drivers/media/platform/omap/omap_vout.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/media/platform/omap/omap_vout.c b/drivers/media/platform/omap/omap_vout.c index 35cc526..0266ed2 100644 --- a/drivers/media/platform/omap/omap_vout.c +++ b/drivers/media/platform/omap/omap_vout.c @@ -333,8 +333,6 @@ static int video_mode_to_dss_mode(struct omap_vout_device *vout) ovl = ovid->overlays[0]; switch (pix->pixelformat) { - case 0: - break; case V4L2_PIX_FMT_YUYV: mode = OMAP_DSS_COLOR_YUV2; break;