From patchwork Wed Jun 1 10:34:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 69008 Delivered-To: patch@linaro.org Received: by 10.140.92.199 with SMTP id b65csp14866qge; Wed, 1 Jun 2016 03:34:51 -0700 (PDT) X-Received: by 10.98.25.147 with SMTP id 141mr7242912pfz.60.1464777289106; Wed, 01 Jun 2016 03:34:49 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i73si50349813pfa.222.2016.06.01.03.34.48; Wed, 01 Jun 2016 03:34:49 -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 S1752356AbcFAKek (ORCPT + 14 others); Wed, 1 Jun 2016 06:34:40 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:33111 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752209AbcFAKei (ORCPT ); Wed, 1 Jun 2016 06:34:38 -0400 Received: by mail-pf0-f182.google.com with SMTP id b124so12960966pfb.0 for ; Wed, 01 Jun 2016 03:34:38 -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=hIxa+YcrvubTuGhPC3keHsK1hFAom7AXQVnxxxh6t9o=; b=dPfjshltfUjZkuhjPxOCahRrgo4wschX4iG62lqH+eeUEghr+pr3ObIHtz14MXhXHk Kimjlma6V1AamqzHDegxl+JtuhBSr52EWcmhrndA7vwG5R1lJX2HJ4thQMQeR7mYBI5j VX/3T2SSRJ3zm58wGPOClttf1a+FpmMwMGG20= 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=hIxa+YcrvubTuGhPC3keHsK1hFAom7AXQVnxxxh6t9o=; b=a4EXbiCjU8fslxRYnzmn0lysuQ2YgjNr6Jvutd2giy85SSOtIxC/6JPgeX87fhaOBn Ke2/gcRoY7UMs49J0psZ2nbmOPM9FYkh5akJErX4bF47NmFuk4IN4oQS+4pWXDGBL4Sn Th7XNwEsgxOTgqTAuPuOVKtgZZ7pyfyEY8FjaBsN8AUDDYEsodeIURQi8QXmsw6Zj3fH yNEvDXcy7FwxO+ezzuno7Gkg1H6Gpk1Izv0AOuStGq+VOeEBivdDsImNrChOJMRnpzgu QN8mjUqV5SAHwGa7Obll8VAX1SIalFMMiR4nTzE9koUdaV9ZSSX0xvM0nXmlVh7Ab0Dh oJHA== X-Gm-Message-State: ALyK8tKAgFJNh31CvTi6G2Hsvh/TItYWeAuVzQht+r2auBRGB7Y2ErT2RMupba6oIEiBmuYk X-Received: by 10.98.42.73 with SMTP id q70mr7349313pfq.128.1464777277775; Wed, 01 Jun 2016 03:34:37 -0700 (PDT) Received: from localhost ([122.167.174.248]) by smtp.gmail.com with ESMTPSA id t77sm47003548pfa.71.2016.06.01.03.34.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Jun 2016 03:34:37 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , Viresh Kumar Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Kukjin Kim , Krzysztof Kozlowski , linux-kernel@vger.kernel.org Subject: [PATCH 2/8] cpufreq: s3c24xx: Remove useless checks Date: Wed, 1 Jun 2016 16:04:16 +0530 Message-Id: <59631fdb5720381c8831ab90c0b6d05e7bcacc0c.1464776797.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. Cc: Kukjin Kim Cc: 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++;