From patchwork Fri Jun 3 05:28:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 69218 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp90708qgf; Thu, 2 Jun 2016 22:29:23 -0700 (PDT) X-Received: by 10.66.168.109 with SMTP id zv13mr2712639pab.10.1464931763592; Thu, 02 Jun 2016 22:29:23 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b70si5209773pfb.196.2016.06.02.22.29.23; Thu, 02 Jun 2016 22:29:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751837AbcFCF3K (ORCPT + 14 others); Fri, 3 Jun 2016 01:29:10 -0400 Received: from mail-pa0-f54.google.com ([209.85.220.54]:33800 "EHLO mail-pa0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751759AbcFCF3I (ORCPT ); Fri, 3 Jun 2016 01:29:08 -0400 Received: by mail-pa0-f54.google.com with SMTP id bz2so11377740pad.1 for ; Thu, 02 Jun 2016 22:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=ntrWse3qOpY4DAR61nHBU0mbDEhz58bubazLV5jY84g=; b=CBtD3XH+OAnwUguzybEAtmzvNo56ETSJBhpwqwUdWg+QxX5UuRIVvvTVS3nPZtOZRO qHvO5RxkhQaQQG90GP1BUaipyS9OVVe7vDVyuA9MY+GRwYIlq/0H51ox9XQtjtBWS+qz 8Mt1iT0jpVCeb1TqRut7VvUPCdlVmYabBR92E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=ntrWse3qOpY4DAR61nHBU0mbDEhz58bubazLV5jY84g=; b=WpRRmw+HELqtXgBDD27b5aScJaHVJ5KPtL2MtsKfFlwyPRBfGgkiowNF62jg+M7yAf 460jA95HlRjy4UQJKFZJSUQVl6t0h8Yw8JDVne7WCpuP5YKzb1o5RKzHtAfCczIZGW23 mwWrXE5gETyhfHGDNXu1IoE/7+89ZIttGQtjDxKm7YTVSOJ38Hfxh5wVXE+mUO+4qQ59 jQ5NNP1aiucA84iBWIM3dUcme0TJz6VzUG7dNydNNMsap43a246fh0utFH8/YmxyMnkw jnQXD9lQE6B3fKtatscWpTudZIMFkPWkdHIiDdL2cufF3J2IlHyJ+NkNwLtjkTIZfHYg FETA== X-Gm-Message-State: ALyK8tJEU/WeQW6yPYYGqzpJHzkuTb6BuVv7aZE3q4mBLV6OWUfCCHzbQWX4/6gMtpRiaODO X-Received: by 10.66.132.103 with SMTP id ot7mr2782885pab.60.1464931747869; Thu, 02 Jun 2016 22:29:07 -0700 (PDT) Received: from localhost ([122.167.17.193]) by smtp.gmail.com with ESMTPSA id ez6sm2307652pab.12.2016.06.02.22.29.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jun 2016 22:29:07 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Viresh Kumar Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH V3 2/8] cpufreq: s3c24xx: Remove useless checks Date: Fri, 3 Jun 2016 10:58:46 +0530 Message-Id: <8520e7ab2698399b47dbf8c53accd48a01a89bd7.1464931080.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.1.410.g6faf27b In-Reply-To: References: In-Reply-To: References: Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org These aren't required at all, remove them. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Viresh Kumar --- drivers/cpufreq/s3c24xx-cpufreq.c | 4 ---- 1 file changed, 4 deletions(-) -- 2.7.1.410.g6faf27b -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/cpufreq/s3c24xx-cpufreq.c b/drivers/cpufreq/s3c24xx-cpufreq.c index ae8eaed77b70..4567c3cab095 100644 --- a/drivers/cpufreq/s3c24xx-cpufreq.c +++ b/drivers/cpufreq/s3c24xx-cpufreq.c @@ -571,11 +571,7 @@ static int s3c_cpufreq_build_freq(void) { int size, ret; - if (!cpu_cur.info->calc_freqtable) - return -EINVAL; - kfree(ftab); - ftab = NULL; size = cpu_cur.info->calc_freqtable(&cpu_cur, NULL, 0); size++;