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: 10889245 X-Patchwork-Delegate: viresh.linux@gmail.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7150813B5 for ; Mon, 8 Apr 2019 10:17:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 56492285A4 for ; Mon, 8 Apr 2019 10:17:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 476CA285C9; Mon, 8 Apr 2019 10:17:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E2E3F285A4 for ; Mon, 8 Apr 2019 10:17:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726396AbfDHKRO (ORCPT ); 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-Google-Smtp-Source: APXvYqxsabb57g17JjGkijyv0MPiOezy+yODG2vSbtwqDOIKtkRI18jF+LEtkpLgbamChVoujMlHig== 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 X-Virus-Scanned: ClamAV using ClamSMTP The success path and error path both look the same, don't duplicate the code. Signed-off-by: Viresh Kumar Acked-by: Rafael J. Wysocki --- drivers/cpufreq/maple-cpufreq.c | 4 ---- 1 file changed, 4 deletions(-) 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);