Message ID | 1505954032-3327-7-git-send-email-cw00.choi@samsung.com (mailing list archive) |
---|---|
State | Deferred |
Headers | show
Return-Path: <linux-pm-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 946336056A for <patchwork-linux-pm@patchwork.kernel.org>; Thu, 21 Sep 2017 00:35:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 862D42926A for <patchwork-linux-pm@patchwork.kernel.org>; Thu, 21 Sep 2017 00:35:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A9E12927E; Thu, 21 Sep 2017 00:35:29 +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=-6.9 required=2.0 tests=BAYES_00,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 1796B2926A for <patchwork-linux-pm@patchwork.kernel.org>; Thu, 21 Sep 2017 00:35:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752360AbdIUAf0 (ORCPT <rfc822;patchwork-linux-pm@patchwork.kernel.org>); Wed, 20 Sep 2017 20:35:26 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:40373 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751976AbdIUAd6 (ORCPT <rfc822;linux-pm@vger.kernel.org>); Wed, 20 Sep 2017 20:33:58 -0400 Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20170921003357epoutp02e54cdebd0fbe741f9049c57782b2d199~mOTfNbiKl0156001560epoutp02W; Thu, 21 Sep 2017 00:33:57 +0000 (GMT) Received: from epsmges1p4.samsung.com (unknown [182.195.40.66]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20170921003356epcas1p4faf4572850506e99e09c0e1a93b0871c~mOTe5qHl62693726937epcas1p4f; Thu, 21 Sep 2017 00:33:56 +0000 (GMT) Received: from epcas1p3.samsung.com ( [182.195.41.47]) by epsmges1p4.samsung.com (Symantec Messaging Gateway) with SMTP id 07.F5.20296.4F803C95; Thu, 21 Sep 2017 09:33:56 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20170921003356epcas1p246204a12c12e4c9ed94771dc25ce143d~mOTeeeGoh1362413624epcas1p2S; Thu, 21 Sep 2017 00:33:56 +0000 (GMT) X-AuditID: b6c32a38-f799e6d000004f48-c3-59c308f4e12a Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 6A.02.11757.4F803C95; Thu, 21 Sep 2017 09:33:56 +0900 (KST) Received: from localhost.localdomain ([10.113.62.212]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OWL00BYOTKJX990@mmp1.samsung.com>; Thu, 21 Sep 2017 09:33:55 +0900 (KST) From: Chanwoo Choi <cw00.choi@samsung.com> To: myungjoo.ham@samsung.com, kyungmin.park@samsung.com, cw00.choi@samsung.com Cc: rafael.j.wysocki@intel.com, chanwoo@kernel.org, inki.dae@samsung.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/8] PM / devfreq: Remove unneeded conditional statement Date: Thu, 21 Sep 2017 09:33:50 +0900 Message-id: <1505954032-3327-7-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 In-reply-to: <1505954032-3327-1-git-send-email-cw00.choi@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+N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XjsORBlv+SlpMvHGFxeL6l+es FpPuT2CxONv0ht3i8q45bBafe48wWtxuXMFm8XjFW3YHDo/Fe14yeWxa1cnm0bdlFaPH501y ASxRXDYpqTmZZalF+nYJXBn3N55nKdjNUbFypnAD4xT2LkZODgkBE4m+l7OAbC4OIYGdjBK3 /09ghHB+MErcunsWrIpNQEti/4sbbCC2iICfxPb568GKmAWaGCU2PjvABJIQFvCWuLrnGJjN IqAqcfTxM1YQm1fARWLDq04miHVyEh/2PAIbyingKvHtbBfYUCGgmrMvXrNNYORZwMiwilEy taA4Nz232KjAMC+1XK84Mbe4NC9dLzk/dxMjMIy2Hdbq28F4f0n8IUYBDkYlHt4Aq4ORQqyJ ZcWVuYcYJTiYlUR4Yx4eihTiTUmsrEotyo8vKs1JLT7EKM3BoiTOm9k3I1JIID2xJDU7NbUg tQgmy8TBKdXA6DNPTcKfLzHp6KQZkjPZuLcduNr1m+H5lcYVPS0VdQZLb7x/dTiv9Gr27JOP VsQYzGRkjBP0YjN1mKY26WWQTeL1krh22dbyop/RL/1FHnu1pd39aGkR5nK+cPLbp0l33PP2 ybkURE+rmbhLXLulVtQio+zn2ZTDGfVXb0b8NE3n2msll/JUiaU4I9FQi7moOBEAQKlUOR8C AAA= X-CMS-MailID: 20170921003356epcas1p246204a12c12e4c9ed94771dc25ce143d X-Msg-Generator: CA X-Sender-IP: 182.195.42.142 X-Local-Sender: =?UTF-8?B?7LWc7LCs7JqwG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbU2VuaW9yIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?Q2hhbndvbyBDaG9pG1RpemVuIFBsYXRmb3JtIExhYi4bU2Ft?= =?UTF-8?B?c3VuZyBFbGVjdHJvbmljcxtTZW5pb3IgRW5naW5lZXI=?= X-Sender-Code: =?UTF-8?B?QzEwG1RFTEUbQzEwVjgxMTE=?= CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20170921003356epcas1p246204a12c12e4c9ed94771dc25ce143d X-RootMTR: 20170921003356epcas1p246204a12c12e4c9ed94771dc25ce143d References: <1505954032-3327-1-git-send-email-cw00.choi@samsung.com> <CGME20170921003356epcas1p246204a12c12e4c9ed94771dc25ce143d@epcas1p2.samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: <linux-pm.vger.kernel.org> X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index 3b9662ffe603..b28810cae7ee 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c @@ -315,10 +315,9 @@ int update_devfreq(struct devfreq *devfreq) freqs.new = freq; devfreq_notify_transition(devfreq, &freqs, DEVFREQ_POSTCHANGE); - if (devfreq->profile->freq_table) - if (devfreq_update_status(devfreq, freq)) - dev_err(&devfreq->dev, - "Couldn't update frequency transition information.\n"); + if (devfreq_update_status(devfreq, freq)) + dev_err(&devfreq->dev, + "Couldn't update frequency transition information.\n"); devfreq->previous_freq = freq; return err;
The commit 0ec09ac2cebe9 ("PM / devfreq: Set the freq_table of devfreq device") initializes the freq_table array of each devfreq device always. In result, it is unneeded to check whether profile->freq_table is NULL or not. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> --- drivers/devfreq/devfreq.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)