summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_mac.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-09-18 22:35:02 +0000
committerrwatson <rwatson@FreeBSD.org>2002-09-18 22:35:02 +0000
commit8f4cf6aafceda7f332ac4016d39c1919fbe48788 (patch)
treea1d6b0b09215805f23b22c37780084fcabff8912 /sys/kern/kern_mac.c
parent37a0ae74d04f9ce74fb8079688eb5fa5188fd3aa (diff)
downloadFreeBSD-src-8f4cf6aafceda7f332ac4016d39c1919fbe48788.zip
FreeBSD-src-8f4cf6aafceda7f332ac4016d39c1919fbe48788.tar.gz
Remove un-needed stack variable 'ops'.
Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/kern/kern_mac.c')
-rw-r--r--sys/kern/kern_mac.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_mac.c b/sys/kern/kern_mac.c
index 3eed0a6..02bfa94 100644
--- a/sys/kern/kern_mac.c
+++ b/sys/kern/kern_mac.c
@@ -366,12 +366,11 @@ static int
mac_policy_register(struct mac_policy_conf *mpc)
{
struct mac_policy_conf *tmpc;
- struct mac_policy_ops *ops;
struct mac_policy_op_entry *mpe;
int slot;
- MALLOC(mpc->mpc_ops, struct mac_policy_ops *, sizeof(*ops), M_MACOPVEC,
- M_WAITOK | M_ZERO);
+ MALLOC(mpc->mpc_ops, struct mac_policy_ops *, sizeof(*mpc->mpc_ops),
+ M_MACOPVEC, M_WAITOK | M_ZERO);
for (mpe = mpc->mpc_entries; mpe->mpe_constant != MAC_OP_LAST; mpe++) {
switch (mpe->mpe_constant) {
case MAC_OP_LAST:
OpenPOWER on IntegriCloud