From patchwork Thu Jun 2 14:04:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 69168 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp136424qgf; Thu, 2 Jun 2016 07:05:45 -0700 (PDT) X-Received: by 10.66.185.68 with SMTP id fa4mr5825297pac.41.1464876345140; Thu, 02 Jun 2016 07:05:45 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r17si772231pfa.1.2016.06.02.07.05.44; Thu, 02 Jun 2016 07:05:45 -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 S932853AbcFBOFn (ORCPT + 14 others); Thu, 2 Jun 2016 10:05:43 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:34089 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932125AbcFBOFm (ORCPT ); Thu, 2 Jun 2016 10:05:42 -0400 Received: by mail-pa0-f53.google.com with SMTP id bz2so6132829pad.1 for ; Thu, 02 Jun 2016 07:05:42 -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=e25ln8K7EG6HxtXSMZJsAGbZiJohziwj3cwicF+0AwhmhkdVHK2kX48q1tk33QAxRa AArdl/HySh4RyPHEO+VKEY8zSgrYhdBRXaBdQ/q4rCZaOFWpnu2BP4DJuAOumPogqEhP 7KR4L3m8gexfQJ9WL9Lvzpys42bkEtlKK322E= 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=SumcPJiVOZVkKdAXwMhA1z3HDD+SMzk4gK/OZwojbai9oRblS7Zs6fWFJwpTSqHbJi yRvydNdHQagNgu4Zo1t5HgarfElAkKVRgK5svGO1Kj+B9KKgkQf+DSMbxO53vmGaWunf zLE4D4K2mmwNOFRP7zhU+s3L2ptNveWcmfp41H9u3ityzukMPNmy3MksxHZjD2kBVK7Y XD8fNExSPKZ9X6k68kGCXGTpewsO5NaxjKzDxFq7goJNj7hft/mg9IVc7I14rl0tOxkD TQpwO5N4sJ2zhu9RItcPo2APrjGFKbLuwog/KUBZrMbILy6HK2n9AuGYlJWre+79de9V wsYg== X-Gm-Message-State: ALyK8tLNeMCXI8PnxvvBLOj9vPMVGL//iYrzfrcxMo84mhN8SAHMOYT4uvt4Tq+fgQqU5nET X-Received: by 10.66.123.37 with SMTP id lx5mr5756970pab.101.1464876341695; Thu, 02 Jun 2016 07:05:41 -0700 (PDT) Received: from localhost ([122.167.17.193]) by smtp.gmail.com with ESMTPSA id z12sm1331278pfj.1.2016.06.02.07.05.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jun 2016 07:05:10 -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 V2 1/6] cpufreq: s3c24xx: Remove useless checks Date: Thu, 2 Jun 2016 19:34:55 +0530 Message-Id: <32e26eaaee58a64ab05362ecbbffb60b6caa1190.1464876229.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++;