From patchwork Wed Jan 23 09:22:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 14240 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 3375C23E39 for ; Wed, 23 Jan 2013 09:31:07 +0000 (UTC) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by fiordland.canonical.com (Postfix) with ESMTP id F18A1A19534 for ; Wed, 23 Jan 2013 09:31:06 +0000 (UTC) Received: by mail-vb0-f54.google.com with SMTP id l1so1346624vba.13 for ; Wed, 23 Jan 2013 01:31:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=/5Aq35kIshwEMXuSsaZ5BN7vlEVfW3UvKq7JXe2sJoo=; b=ez4sX0pPg8ylemXII5gw71tdY41AIRxer0v1fBzI/EWnHiMFRRTi1xtHPTuIEyLKJd J0newPiUhM6H9ak5ihvwWDLq8JZRH24FXilEwksZLqUfNOlIeuKM3WB1Fu66DxB6yeCO uJs6sbFcpsb8/scCLcq+EUtPCI6ZPEJXN82iKo+6U6RXuUb38vK5dMANP98s6EqI6djE llt3tvNevE1G3+Rcf3YMbs8n7V1KdnAmbuoc5ZzkyeM+IFPbZPvrE6OqYz5SgIleFOQy uUJJ6ku8GRnn2WYi1hFoj8KgOWmWB1YFJcIqG1DRN0C7EErQktNsIYQoc02I8gL9fAGV PclQ== X-Received: by 10.52.34.108 with SMTP id y12mr547191vdi.8.1358933466446; Wed, 23 Jan 2013 01:31:06 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp642veb; Wed, 23 Jan 2013 01:31:05 -0800 (PST) X-Received: by 10.68.227.33 with SMTP id rx1mr1812216pbc.67.1358933465502; Wed, 23 Jan 2013 01:31:05 -0800 (PST) Received: from mail-pb0-f48.google.com (mail-pb0-f48.google.com [209.85.160.48]) by mx.google.com with ESMTPS id y9si20183438paw.304.2013.01.23.01.31.05 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Jan 2013 01:31:05 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.48 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.48; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.48 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pb0-f48.google.com with SMTP id wy12so3187040pbc.35 for ; Wed, 23 Jan 2013 01:31:05 -0800 (PST) X-Received: by 10.68.136.73 with SMTP id py9mr1849292pbb.43.1358933465057; Wed, 23 Jan 2013 01:31:05 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id gj1sm12498360pbc.11.2013.01.23.01.31.01 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 23 Jan 2013 01:31:04 -0800 (PST) From: Sachin Kamat To: linux-samsung-soc@vger.kernel.org Cc: kgene.kim@samsung.com, rjw@sisk.pl, jhbird.choi@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 2/2] cpufreq: exynos: Initialise return variable Date: Wed, 23 Jan 2013 14:52:12 +0530 Message-Id: <1358932932-14094-2-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1358932932-14094-1-git-send-email-sachin.kamat@linaro.org> References: <1358932932-14094-1-git-send-email-sachin.kamat@linaro.org> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQm9j2cLDE0/64dFvONrtB6bZLALyjgllWpjRBN5smiN/ts9JwUCM7wuuzNifmfpQ0buO3Ra 'ret' is undefined when the function returns from the first 'if' condition. Without this patch we get the following warning: drivers/cpufreq/exynos-cpufreq.c: In function ‘exynos_target’: drivers/cpufreq/exynos-cpufreq.c:182:2: warning: ‘ret’ may be used uninitialized in this function [-Wuninitialized] Suggested-by: Jonghwan Choi Signed-off-by: Sachin Kamat --- drivers/cpufreq/exynos-cpufreq.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c index 88401ba..4268e46 100644 --- a/drivers/cpufreq/exynos-cpufreq.c +++ b/drivers/cpufreq/exynos-cpufreq.c @@ -159,7 +159,7 @@ static int exynos_target(struct cpufreq_policy *policy, { struct cpufreq_frequency_table *freq_table = exynos_info->freq_table; unsigned int index; - int ret; + int ret = 0; mutex_lock(&cpufreq_lock);