From patchwork Mon Apr 8 10:17:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 161935 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp3504117jan; Mon, 8 Apr 2019 03:17:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyI3v+qetw1TtLWrxNi5sHf0wY2NflzAK8/x3T2vHkSJX3RgW250/F8PMjiWbZd994BIsb7 X-Received: by 2002:a17:902:a513:: with SMTP id s19mr28412965plq.97.1554718636057; Mon, 08 Apr 2019 03:17:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554718636; cv=none; d=google.com; s=arc-20160816; b=Plw6AFmOX69gg51L1YSzKIW6fSOIe9irUpqhXkkiFgd/chJFFR2pDj3SUIBazoWNgJ 79jf+zkrQTw/VXuKrsdFJLwOPsoWpw1cyw9pUW1o60LctjZMY0TUVXK6HR7TxWKxXE2s GzUUWhC3IoA5c6FtqMf6u1c407H7ct6JK1n5ZJZQo6ntGVX2qUd1TpoF8Ul3NPtHIZrE hbYqMTigmcx4Z/wHLNn8XstsLMEQHzxdsjYiQGRPBqXOAStCPQPO2tl+kC0p8cM5McFn +Z6vSSiPkUQIslp6QTh+rrod0yNGk8yF4e6vZggY6RiVKH5jyEm8olvmsByl1EqCaVQl yEmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=WvgHnd237oGngw9Iinl1xldDc2z2stqnIQlwZoYfjL8=; b=oJp8uiG9eplqGxEQM+OhFeMtS2W5py6qCJedwDNg8vXSUSuU4ut5KQKC72/z4lZFyf 0d4IgCjY6pwLfJBQLZZCduJRW11shOum9Rk93aF0RT6u5IWVKAURAPfk6OQ2kA3gCTDj L1eNnKHb4JNf1KYwafxLnvLamQklRLOmrSwywmeKsr/rtTu2G1nMF877W1sPvQuDuaRD JN0pfKSpV/rhpXGSe8KWM4tYU42oRJkSxr53IamDCVWVu48b8zFrrjRZLdiJ3FZAvJAY CjZxFw57FRUOMe0s2K9zrBIDlhNDqz9r2YmoHCCZVfaR442ggt5bgF0LW0TYTPHyqlQp TLHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zueC8Wpu; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a22si26005996plm.263.2019.04.08.03.17.15; Mon, 08 Apr 2019 03:17:16 -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=pass header.i=@linaro.org header.s=google header.b=zueC8Wpu; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726396AbfDHKRO (ORCPT + 11 others); Mon, 8 Apr 2019 06:17:14 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:40615 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbfDHKRO (ORCPT ); Mon, 8 Apr 2019 06:17:14 -0400 Received: by mail-pl1-f196.google.com with SMTP id b3so7062712plr.7 for ; Mon, 08 Apr 2019 03:17:14 -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:mime-version :content-transfer-encoding; bh=WvgHnd237oGngw9Iinl1xldDc2z2stqnIQlwZoYfjL8=; b=zueC8WpuxIqagO4BEiWCRrfweXmf3rgrtBQl18HqTlVu/XemFE6zb/4jIIpKrpD1YF R4KxXtmEu2reSa2S2xvxnJftqsWpntxujRrIzaTwg/rK+0cS/uMD73fJoTyaX33Bnc95 NN6649v9tlMLFbKPMCYyBZLomVJ5JoUjspECz8q1TckjNcQi3EbQiUm1/pkBLuStQrHA RPdRKVHeeEUJQA4z4fle9OML12g3zOhAHDhE2A3d2z1IB5TCrbhqzXKEPFUsKg/fn7mk zmaD1YTFPQlYgc3sxuvz0PECvJvMreIx/TfBampSzd1tQs2+MXSvv0IWxs+IukCKBe39 RCzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WvgHnd237oGngw9Iinl1xldDc2z2stqnIQlwZoYfjL8=; b=pzNNQmQFpYWrO7rn4E2Tiz6I/L7uso+KKoCEN6gCuYdfJPaazSSspIyEFzOVIk1YgI +166Ar4EE8dcNE01qwdjEZtiWN24I8RY4Qg9BcASAN4LGuJdClRNMDJOY877VBjqA7F4 Q9Xy6tWuUwL4o/dB8HLiPPmpnjUxhGEFmFkF0WbIwDwK5PZUmpT6IXGtVQUM5lsGoxvW ouXvTr76v6SIujaxyXoSr5PPpZBbJAaKW5kULGWkXj1K9owNJKFrB1qvoQnXe8lpB2Do de+REeYTCwwWuMP+odUcWJmVEKA08YuQa/1raKLuUhNuipiNNbWOkbGlvAzPJE60aw6n PZKA== X-Gm-Message-State: APjAAAVCkoWIQKezyQiJGjT2qKKzPw5dqhT2oN7jL+ReMphtKvu5ZWUG jhaniTNKU9rlt7BMGTlwyLzHEw== X-Received: by 2002:a17:902:28a9:: with SMTP id f38mr9577120plb.295.1554718633578; Mon, 08 Apr 2019 03:17:13 -0700 (PDT) Received: from localhost ([122.172.162.162]) by smtp.gmail.com with ESMTPSA id c1sm41202562pfd.114.2019.04.08.03.17.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Apr 2019 03:17:12 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , linux-kernel@vger.kernel.org Subject: [PATCH] cpufreq: maple: Remove redundant code from maple_cpufreq_init() Date: Mon, 8 Apr 2019 15:47:06 +0530 Message-Id: X-Mailer: git-send-email 2.21.0.rc0.269.g1a574e7a288b MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The success path and error path both look the same, don't duplicate the code. Signed-off-by: Viresh Kumar --- drivers/cpufreq/maple-cpufreq.c | 4 ---- 1 file changed, 4 deletions(-) -- 2.21.0.rc0.269.g1a574e7a288b Acked-by: Rafael J. Wysocki diff --git a/drivers/cpufreq/maple-cpufreq.c b/drivers/cpufreq/maple-cpufreq.c index a05f1342ec02..a94355723ef8 100644 --- a/drivers/cpufreq/maple-cpufreq.c +++ b/drivers/cpufreq/maple-cpufreq.c @@ -231,10 +231,6 @@ static int __init maple_cpufreq_init(void) rc = cpufreq_register_driver(&maple_cpufreq_driver); - of_node_put(cpunode); - - return rc; - bail_noprops: of_node_put(cpunode);