From patchwork Thu Jan 3 15:45:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 1928261 Return-Path: X-Original-To: patchwork-linux-media@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 A38CFDF25A for ; Thu, 3 Jan 2013 15:45:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753428Ab3ACPp0 (ORCPT ); Thu, 3 Jan 2013 10:45:26 -0500 Received: from mailout1.samsung.com ([203.254.224.24]:49173 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753426Ab3ACPpZ (ORCPT ); Thu, 3 Jan 2013 10:45:25 -0500 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MG2001EF3RJLA20@mailout1.samsung.com> for linux-media@vger.kernel.org; Fri, 04 Jan 2013 00:45:24 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-a1-50e5a7941d87 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id A9.7F.01231.497A5E05; Fri, 04 Jan 2013 00:45:24 +0900 (KST) Received: from amdc1344.digital.local ([106.116.147.32]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MG2002B73RD7GA0@mmp2.samsung.com> for linux-media@vger.kernel.org; Fri, 04 Jan 2013 00:45:24 +0900 (KST) From: Sylwester Nawrocki To: linux-media@vger.kernel.org Cc: Sylwester Nawrocki , Kyungmin Park Subject: [PATCH 3/5] s5p-fimc: Fix return value of __fimc_md_create_flite_source_links() Date: Thu, 03 Jan 2013 16:45:08 +0100 Message-id: <1357227910-28870-3-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.7.9.5 In-reply-to: <1357227910-28870-1-git-send-email-s.nawrocki@samsung.com> References: <1357227910-28870-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrAJMWRmVeSWpSXmKPExsVy+t9jQd0py58GGNw/Z2TRs2ErqwOjx+dN cgGMUVw2Kak5mWWpRfp2CVwZk6bNZi+4wlbxYO5LxgbGK6xdjJwcEgImEg86zzFD2GISF+6t Z+ti5OIQEpjOKLFkwgxmCGcFk8Sas1MZQarYBAwleo/2gdkiAvIST3pvsIHYzAIxEt9+XgKL CwtESUyatgiomYODRUBV4tmKRJAwr4CbxJqVt9lBwhICChJzJtmAhDkF3CUuXt3BAmILAZVM unKTcQIj7wJGhlWMoqkFyQXFSem5hnrFibnFpXnpesn5uZsYwf5+JrWDcWWDxSFGAQ5GJR5e xvonAUKsiWXFlbmHGCU4mJVEeGfnPw0Q4k1JrKxKLcqPLyrNSS0+xCjNwaIkzst4CqhaID2x JDU7NbUgtQgmy8TBKdXAuDaCsbxeKebXpmutjCKKDV9n/lt5x3Rt9STZMhn7WZcK37gdrFhU 5n2O/3uA/sHOmW+6mp9mbLx853BW2812Leccs9O3OUqYp1/4kbXA+YZQoP8sriV3pFstmqZE JInW3KvZw/Hz4JpLP8/qH/5d/S9SvfNj0uMNWabT1vu7znrc+a7u2ZmPNUosxRmJhlrMRcWJ AJIl037zAQAA Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Make sure 'ret' is not used uninitialized. Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- drivers/media/platform/s5p-fimc/fimc-mdevice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s5p-fimc/fimc-mdevice.c b/drivers/media/platform/s5p-fimc/fimc-mdevice.c index e77dba7..41ddfee 100644 --- a/drivers/media/platform/s5p-fimc/fimc-mdevice.c +++ b/drivers/media/platform/s5p-fimc/fimc-mdevice.c @@ -594,7 +594,7 @@ static int __fimc_md_create_flite_source_links(struct fimc_md *fmd) { struct media_entity *source, *sink; unsigned int flags = MEDIA_LNK_FL_ENABLED; - int i, ret; + int i, ret = 0; for (i = 0; i < FIMC_LITE_MAX_DEVS; i++) { struct fimc_lite *fimc = fmd->fimc_lite[i];