From patchwork Thu Feb 15 19:30:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 10223467 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: 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 218D1601D7 for ; Thu, 15 Feb 2018 19:30:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11C59294C5 for ; Thu, 15 Feb 2018 19:30:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 065FA294C7; Thu, 15 Feb 2018 19:30:40 +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 B279D294C5 for ; Thu, 15 Feb 2018 19:30:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755465AbeBOTah (ORCPT ); Thu, 15 Feb 2018 14:30:37 -0500 Received: from mout.web.de ([212.227.17.11]:39655 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751104AbeBOTag (ORCPT ); Thu, 15 Feb 2018 14:30:36 -0500 Received: from [192.168.1.2] ([78.49.142.64]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MJkxE-1elImE28CC-001DRM; Thu, 15 Feb 2018 20:30:34 +0100 Subject: [PATCH 2/2] cpufreq: powernow-k8: Delete an unnecessary return statement in two functions From: SF Markus Elfring To: linux-pm@vger.kernel.org, "Rafael J. Wysocki" , Viresh Kumar Cc: LKML , kernel-janitors@vger.kernel.org References: <4dd36236-fc39-19e6-c1a7-a094cf13469c@users.sourceforge.net> Message-ID: Date: Thu, 15 Feb 2018 20:30:33 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <4dd36236-fc39-19e6-c1a7-a094cf13469c@users.sourceforge.net> Content-Language: en-US X-Provags-ID: V03:K0:QpPPgSY/BJsWv7v3BsXhtQhkocKTTHpMms+EPL7lTi+rdk4yekM 6CbdQKFTrc60v7vVZ6e448Khtkd+lBEBcVMyY2/9wew866O/7sE1FKMndMoxJIx2KmOinzA BZsYCeIqrY+P2+ntE0Co6RR0bPXKy1KfCWUYPnGOGJZ2mt5XA+r04nL+zViFR2ZLmX5zAZX +HvfwFdRaJB4vW6H7QuaA== X-UI-Out-Filterresults: notjunk:1; V01:K0:LhVa1OE4k4M=:W4Rs9kVhl7UXq9xKGjeJ/H mEWUQoc2efy1Qujd82VeF7XcleKbrrb5lsJj0bSJ8DWz86QYvd4ECjXjoBv8W+NH8szcTI65N +NqiN0ozbd51Jlehrbnki6QRnyPlwJZhOw/pSl7EuN12FY2ZPDLAYGgPRvv/N/ulrX4fyDOGF bYMnyrYoZ1ibXgt5KQjkKJraJLVb6XARu/Db4YbsdDbir8nlwI89YsGMr4DEHfhy6CM/TdtQ3 xNK5I0xBbOkcRawYtr6zlat7FBB6A5yJgKa8Atn8/bBPq4b3s8uqZ8fTsEm8cWWM+R7tH+Ohx fIyOlkCEc9dhImgnW42T2Efre9R+Ig4oSrIWtr0af9+tbDYJVgoVsb2u1zjPc1+btw4xuN/2a Px2xMSYcUaaKtkq501RiYSqi1jfpZ667WnT2VhMB41fVjbko/v/JD8ZkyGxbMQbTjIbaoPuPY EuquH4iD4ZtK9uo/F45TvFM9xeV+OfeXIvH/OTYNARIGIn2O7RgpeDta4NLXJwRhC73iZESpn OY8eTHbvDp/1+zTOzmj7FsGAxwVXcEYrqtczaIQzArAfMewRHpUXr8gCJk3sPVN4kwyP6YcIi 2WVeRm4AupQ+U4W6d7M7lNKA0ETYdYaTNcO6BOoeXNQ+OaQ0fPT8I5LYkHdR7ceSGF93/4JEJ w4Fwr1KKwaQVLyxFvChwHwmrkqRx2UxfAuFUsGfDjs4bGbuVcV69lrAWb5CXz2tJlcWtnDvrh Q60SoCdXz9BFZIKtjX4saS16jdQJ2i13AE2db43DNLtaZfFfrNpkNHhLgZmIfimLz3xBB1OI+ bJaj9nQmGlw2unQCoPN1f6PcFjyA4WZFmvO2CtHtk0eACAw56Y= 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 From: Markus Elfring Date: Thu, 15 Feb 2018 20:14:32 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: void function return statements are not generally useful Thus remove such a statement in the affected functions. Signed-off-by: Markus Elfring Acked-by: Viresh Kumar --- drivers/cpufreq/powernow-k8.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/cpufreq/powernow-k8.c b/drivers/cpufreq/powernow-k8.c index 460bf22a8a2b..782a8c2a359d 100644 --- a/drivers/cpufreq/powernow-k8.c +++ b/drivers/cpufreq/powernow-k8.c @@ -122,14 +122,12 @@ static int query_current_values_with_pending_wait(struct powernow_k8_data *data) static void count_off_irt(struct powernow_k8_data *data) { udelay((1 << data->irt) * 10); - return; } /* the voltage stabilization time */ static void count_off_vst(struct powernow_k8_data *data) { udelay(data->vstable * VST_UNITS_20US); - return; } /* need to init the control msr to a safe value (for each cpu) */