Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp86898ybl; Tue, 27 Aug 2019 16:19:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0OceTPELtOLGHsjnJghWxFw4oepDnxD6z9PCKVsoOAMFQthKQSNgi29RPxZN3PD4feqN8 X-Received: by 2002:a63:5b52:: with SMTP id l18mr831241pgm.21.1566947985841; Tue, 27 Aug 2019 16:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566947985; cv=none; d=google.com; s=arc-20160816; b=W+3Jik+JuQuAKuP1Ubi4v/8iswUWyIXQdUsaY2qG8e6315emp2T4Tqv82Fzyi5xc5F S7qMD7vyKbTpIzDufLRNTG9PGzPLHRhMGhUXhvy8hxTtYWCDjR+Ojx9oJGrOzuK0ylq0 JUBGskkFXTh53E7x3V2n9u/NvdyISr4AdvxV2TurUrE0kLN71nCou56YoeIkeFGWH8OG Bl+mxFauzpmL22h/d1DDL81ySQwUwFQF3P42OJWc1UZQ6JF5YzznWxPJFGkSAvldEgaL xiTLcePqbViT6PKO9Ht/BhkxSjpzyptPkRwT7xMvDWw/G5S9UxADOZ+4PFuLGeUQoXp8 3lLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=C2QTGORIQY23i4VfgLcIkz4K6oh6wfrKoRojyxWIkuk=; b=AZwE4Z5KDX38o1/D5pqLdkPjkDA1lL0sqGA9Nxa7H6dsPDBf36xzXheGwNtH0YEody uOjDO1r/uVV2MddBdaRURhjaPQ1M4sq+TjsB+1tOLW6hgacmhzXfN41o+mykVK54lO7Q oVsK+FA0GUKZE+9ZG4s80AwNST3UImnuC5JkIIaV7AiXDnsN+PzeCOlRS4Yc3dDOCRG0 Lvs4rsTSsxh7fniYSK4Rn21352jMGqi2pcwovgxEjncGsYS+axZWYqYGyuZQ2B74/1Ov 3eDkYfg5831sSuelDeQ/jdYDbf/kAsFkheQC+egP0MR87bUXSE19B6TwuezU5kYbilot VTLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=wp2G22s2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 16si607107pfc.213.2019.08.27.16.19.30; Tue, 27 Aug 2019 16:19:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@kernel.org header.s=default header.b=wp2G22s2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726250AbfH0XRO (ORCPT + 99 others); Tue, 27 Aug 2019 19:17:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:43140 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725997AbfH0XRN (ORCPT ); Tue, 27 Aug 2019 19:17:13 -0400 Received: from localhost (unknown [69.71.4.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F35DA20856; Tue, 27 Aug 2019 23:17:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566947832; bh=LHYP3wO1EM0CN7MZnuQ9uyPpTSuaC669PEWoJvNcjA4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wp2G22s2JiRw967LPOtC7TV8P1ym933f60GQCuP9jTKdhOqTI6+p5eZAJ0ic5NX6J 6mH+po7knLNM01dxN+2SAHO5hLA6asmWU0K7y+bFR6YVV+IX0UL+xFzf9QXIKCKS0E LKK8hS8bnaKMHqrjAQF1xXI9iqvvNL0h0qE3zUUc= Date: Tue, 27 Aug 2019 18:17:10 -0500 From: Bjorn Helgaas To: Krzysztof Wilczynski Cc: Scott Murray , Tyrel Datwyler , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Andy Shevchenko , "Rafael J. Wysocki" , Lukas Wunner , YueHaibing , Sebastian Ott , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] PCI: hotplug: Remove surplus return from a void function Message-ID: <20190827231710.GH9987@google.com> References: <20190826095143.21353-1-kw@linux.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190826095143.21353-1-kw@linux.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 26, 2019 at 11:51:43AM +0200, Krzysztof Wilczynski wrote: > Remove unnecessary empty return statement at the end of a void > function in the following: > > - drivers/pci/hotplug/cpci_hotplug_core.c: cleanup_slots() > - drivers/pci/hotplug/cpqphp_core.c: pci_print_IRQ_route() > - drivers/pci/hotplug/cpqphp_ctrl.c: cpqhp_pushbutton_thread() > - drivers/pci/hotplug/cpqphp_ctrl.c: interrupt_event_handler() > - drivers/pci/hotplug/cpqphp_nvram.h: compaq_nvram_init() > - drivers/pci/hotplug/rpadlpar_core.c: rpadlpar_io_init() > - drivers/pci/hotplug/rpaphp_core.c: cleanup_slots() > > Signed-off-by: Krzysztof Wilczynski Applied to pci/trivial for v5.4, thanks! I squashed the mediatek patch into this since they're both trivial. > --- > drivers/pci/hotplug/cpci_hotplug_core.c | 1 - > drivers/pci/hotplug/cpqphp_core.c | 1 - > drivers/pci/hotplug/cpqphp_ctrl.c | 4 ---- > drivers/pci/hotplug/cpqphp_nvram.h | 5 +---- > drivers/pci/hotplug/rpadlpar_core.c | 1 - > drivers/pci/hotplug/rpaphp_core.c | 1 - > 6 files changed, 1 insertion(+), 12 deletions(-) > > diff --git a/drivers/pci/hotplug/cpci_hotplug_core.c b/drivers/pci/hotplug/cpci_hotplug_core.c > index 603eadf3d965..d0559d2faf50 100644 > --- a/drivers/pci/hotplug/cpci_hotplug_core.c > +++ b/drivers/pci/hotplug/cpci_hotplug_core.c > @@ -563,7 +563,6 @@ cleanup_slots(void) > } > cleanup_null: > up_write(&list_rwsem); > - return; > } > > int > diff --git a/drivers/pci/hotplug/cpqphp_core.c b/drivers/pci/hotplug/cpqphp_core.c > index 16bbb183695a..b8aacb41a83c 100644 > --- a/drivers/pci/hotplug/cpqphp_core.c > +++ b/drivers/pci/hotplug/cpqphp_core.c > @@ -173,7 +173,6 @@ static void pci_print_IRQ_route(void) > dbg("%d %d %d %d\n", tbus, tdevice >> 3, tdevice & 0x7, tslot); > > } > - return; > } > > > diff --git a/drivers/pci/hotplug/cpqphp_ctrl.c b/drivers/pci/hotplug/cpqphp_ctrl.c > index b7f4e1f099d9..68de958a9be8 100644 > --- a/drivers/pci/hotplug/cpqphp_ctrl.c > +++ b/drivers/pci/hotplug/cpqphp_ctrl.c > @@ -1872,8 +1872,6 @@ static void interrupt_event_handler(struct controller *ctrl) > } > } /* End of FOR loop */ > } > - > - return; > } > > > @@ -1943,8 +1941,6 @@ void cpqhp_pushbutton_thread(struct timer_list *t) > > p_slot->state = STATIC_STATE; > } > - > - return; > } > > > diff --git a/drivers/pci/hotplug/cpqphp_nvram.h b/drivers/pci/hotplug/cpqphp_nvram.h > index 918ff8dbfe62..70e879b6a23f 100644 > --- a/drivers/pci/hotplug/cpqphp_nvram.h > +++ b/drivers/pci/hotplug/cpqphp_nvram.h > @@ -16,10 +16,7 @@ > > #ifndef CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM > > -static inline void compaq_nvram_init(void __iomem *rom_start) > -{ > - return; > -} > +static inline void compaq_nvram_init(void __iomem *rom_start) { } > > static inline int compaq_nvram_load(void __iomem *rom_start, struct controller *ctrl) > { > diff --git a/drivers/pci/hotplug/rpadlpar_core.c b/drivers/pci/hotplug/rpadlpar_core.c > index 182f9e3443ee..977946e4e613 100644 > --- a/drivers/pci/hotplug/rpadlpar_core.c > +++ b/drivers/pci/hotplug/rpadlpar_core.c > @@ -473,7 +473,6 @@ int __init rpadlpar_io_init(void) > void rpadlpar_io_exit(void) > { > dlpar_sysfs_exit(); > - return; > } > > module_init(rpadlpar_io_init); > diff --git a/drivers/pci/hotplug/rpaphp_core.c b/drivers/pci/hotplug/rpaphp_core.c > index c3899ee1db99..18627bb21e9e 100644 > --- a/drivers/pci/hotplug/rpaphp_core.c > +++ b/drivers/pci/hotplug/rpaphp_core.c > @@ -408,7 +408,6 @@ static void __exit cleanup_slots(void) > pci_hp_deregister(&slot->hotplug_slot); > dealloc_slot_struct(slot); > } > - return; > } > > static int __init rpaphp_init(void) > -- > 2.22.1 >