From b9167d9e2877671f1af56a8e3677dff7baa85408 Mon Sep 17 00:00:00 2001 From: msaitoh Date: Mon, 5 Jun 2017 13:35:33 +0000 Subject: [PATCH] Add missing return to print the Slot Power Limit Value correctly. --- sys/dev/pci/pci_subr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/pci_subr.c b/sys/dev/pci/pci_subr.c index a55d3653b738..ae205080101b 100644 --- a/sys/dev/pci/pci_subr.c +++ b/sys/dev/pci/pci_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: pci_subr.c,v 1.183 2017/05/29 07:09:20 msaitoh Exp $ */ +/* $NetBSD: pci_subr.c,v 1.184 2017/06/05 13:35:33 msaitoh Exp $ */ /* * Copyright (c) 1997 Zubin D. Dittia. All rights reserved. @@ -40,7 +40,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.183 2017/05/29 07:09:20 msaitoh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pci_subr.c,v 1.184 2017/06/05 13:35:33 msaitoh Exp $"); #ifdef _KERNEL_OPT #include "opt_pci.h" @@ -2741,6 +2741,7 @@ pci_conf_print_pcie_power(uint8_t base, unsigned int scale) break; } printf("%s\n", s); + return; } for (unsigned int i = scale; i > 0; i--)