mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] pci: shpchp: Correct usage of 'return'
@ 2019-06-02 15:38 Emanuel Bennici
  2019-06-02 15:38 ` [PATCH 2/2] pci: cpqphp: " Emanuel Bennici
  2019-06-03 11:17 ` [PATCH 1/2] pci: shpchp: " Mika Westerberg
  0 siblings, 2 replies; 3+ messages in thread
From: Emanuel Bennici @ 2019-06-02 15:38 UTC (permalink / raw)
  To: linux-kernel
  Cc: Bjorn Helgaas, Joe Perches, Rafael J. Wysocki,
	Gustavo A. R. Silva, Tyrel Datwyler, Mika Westerberg,
	Lukas Wunner

Replace 'return(1)' with 'return 1' because return is not a function.

Signed-off-by: Emanuel Bennici <benniciemanuel78@gmail.com>
---
 drivers/pci/hotplug/shpchp_ctrl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/hotplug/shpchp_ctrl.c b/drivers/pci/hotplug/shpchp_ctrl.c
index 078003dcde5b..a7b807b31726 100644
--- a/drivers/pci/hotplug/shpchp_ctrl.c
+++ b/drivers/pci/hotplug/shpchp_ctrl.c
@@ -342,7 +342,7 @@ static int remove_board(struct slot *p_slot)
 	int rc;

 	if (shpchp_unconfigure_device(p_slot))
-		return(1);
+		return 1;

 	hp_slot = p_slot->device - ctrl->slot_device_offset;
 	p_slot = shpchp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset);
--
2.19.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-03 11:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-02 15:38 [PATCH 1/2] pci: shpchp: Correct usage of 'return' Emanuel Bennici
2019-06-02 15:38 ` [PATCH 2/2] pci: cpqphp: " Emanuel Bennici
2019-06-03 11:17 ` [PATCH 1/2] pci: shpchp: " Mika Westerberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®