Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 2021 19:49:12 GMT
From:      Mitchell Horne <mhorne@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 2129c8f6771a - main - hwpmc_arm64.c: fix return style
Message-ID:  <202106301949.15UJnCcF070927@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mhorne:

URL: https://cgit.FreeBSD.org/src/commit/?id=2129c8f6771a9a33253a1fe2d4e9d3494bc77f10

commit 2129c8f6771a9a33253a1fe2d4e9d3494bc77f10
Author:     Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2021-06-14 15:21:08 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2021-06-30 19:26:07 +0000

    hwpmc_arm64.c: fix return style
    
    In accordance to style(9).
    
    MFC after:      3 days
    Sponsored by:   The FreeBSD Foundation
---
 sys/dev/hwpmc/hwpmc_arm64.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/sys/dev/hwpmc/hwpmc_arm64.c b/sys/dev/hwpmc/hwpmc_arm64.c
index 050f861a74fe..ba98eaefcc9a 100644
--- a/sys/dev/hwpmc/hwpmc_arm64.c
+++ b/sys/dev/hwpmc/hwpmc_arm64.c
@@ -188,7 +188,7 @@ arm64_allocate_pmc(int cpu, int ri, struct pmc *pm,
 
 	PMCDBG2(MDP, ALL, 2, "arm64-allocate ri=%d -> config=0x%x", ri, config);
 
-	return 0;
+	return (0);
 }
 
 
@@ -231,7 +231,7 @@ arm64_read_pmc(int cpu, int ri, pmc_value_t *v)
 	else
 		*v = tmp;
 
-	return 0;
+	return (0);
 }
 
 static int
@@ -254,7 +254,7 @@ arm64_write_pmc(int cpu, int ri, pmc_value_t v)
 	pm->pm_pcpu_state[cpu].pps_overflowcnt = v >> 32;
 	arm64_pmcn_write(ri, v);
 
-	return 0;
+	return (0);
 }
 
 static int
@@ -277,7 +277,7 @@ arm64_config_pmc(int cpu, int ri, struct pmc *pm)
 
 	phw->phw_pmc = pm;
 
-	return 0;
+	return (0);
 }
 
 static int
@@ -305,7 +305,7 @@ arm64_start_pmc(int cpu, int ri)
 	arm64_interrupt_enable(ri);
 	arm64_counter_enable(ri);
 
-	return 0;
+	return (0);
 }
 
 static int
@@ -323,7 +323,7 @@ arm64_stop_pmc(int cpu, int ri)
 	arm64_counter_disable(ri);
 	arm64_interrupt_disable(ri);
 
-	return 0;
+	return (0);
 }
 
 static int
@@ -340,7 +340,7 @@ arm64_release_pmc(int cpu, int ri, struct pmc *pmc)
 	KASSERT(phw->phw_pmc == NULL,
 	    ("[arm64,%d] PHW pmc %p non-NULL", __LINE__, phw->phw_pmc));
 
-	return 0;
+	return (0);
 }
 
 static int



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106301949.15UJnCcF070927>