diff options
author | des <des@FreeBSD.org> | 2008-10-23 20:26:15 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2008-10-23 20:26:15 +0000 |
commit | a1e1ad22e07d384a9609e60cdf00daf7cac902cf (patch) | |
tree | 8c9f9efa0a9f52794e2ce1fe47128f50d30f8c28 /sys/dev/hwpmc/hwpmc_piv.c | |
parent | 0b81365bc66eb70b9d9b1466012b41f8ccdec19a (diff) | |
download | FreeBSD-src-a1e1ad22e07d384a9609e60cdf00daf7cac902cf.zip FreeBSD-src-a1e1ad22e07d384a9609e60cdf00daf7cac902cf.tar.gz |
Fix a number of style issues in the MALLOC / FREE commit. I've tried to
be careful not to fix anything that was already broken; the NFSv4 code is
particularly bad in this respect.
Diffstat (limited to 'sys/dev/hwpmc/hwpmc_piv.c')
-rw-r--r-- | sys/dev/hwpmc/hwpmc_piv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/hwpmc/hwpmc_piv.c b/sys/dev/hwpmc/hwpmc_piv.c index 01de68c..b8f530c 100644 --- a/sys/dev/hwpmc/hwpmc_piv.c +++ b/sys/dev/hwpmc/hwpmc_piv.c @@ -628,7 +628,8 @@ p4_init(int cpu) if (pcs == NULL) /* decline to init */ return ENXIO; - plcs = malloc( sizeof(struct p4_logicalcpu), M_PMC, M_WAITOK|M_ZERO); + plcs = malloc(sizeof(struct p4_logicalcpu), + M_PMC, M_WAITOK|M_ZERO); /* The TSC is architectural state and is not shared */ plcs->pc_hwpmcs[0] = &plcs->pc_tsc; @@ -644,8 +645,7 @@ p4_init(int cpu) return 0; } - pcs = malloc(sizeof(struct p4_cpu), M_PMC, - M_WAITOK|M_ZERO); + pcs = malloc(sizeof(struct p4_cpu), M_PMC, M_WAITOK|M_ZERO); if (pcs == NULL) return ENOMEM; |