aboutsummaryrefslogtreecommitdiff
path: root/sys/security/mac/mac_net.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2018-12-11 19:32:16 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2018-12-11 19:32:16 +0000
commitcc426dd31990b8b50b210efc450e404596548ca1 (patch)
tree4c797c5d8886d8d05bb5346b747005b539105825 /sys/security/mac/mac_net.c
parent959530cc41aea5f878c2c2cea5b545d295108bab (diff)
downloadsrc-cc426dd31990b8b50b210efc450e404596548ca1.tar.gz
src-cc426dd31990b8b50b210efc450e404596548ca1.zip
Remove unused argument to priv_check_cred.
Patch mostly generated with cocinnelle: @@ expression E1,E2; @@ - priv_check_cred(E1,E2,0) + priv_check_cred(E1,E2) Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=341827
Diffstat (limited to 'sys/security/mac/mac_net.c')
-rw-r--r--sys/security/mac/mac_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/mac/mac_net.c b/sys/security/mac/mac_net.c
index 5c781e39491f..cfea7e9a6e91 100644
--- a/sys/security/mac/mac_net.c
+++ b/sys/security/mac/mac_net.c
@@ -477,7 +477,7 @@ mac_ifnet_ioctl_set(struct ucred *cred, struct ifreq *ifr, struct ifnet *ifp)
* impose this check themselves if required by the policy
* Eventually, this should go away.
*/
- error = priv_check_cred(cred, PRIV_NET_SETIFMAC, 0);
+ error = priv_check_cred(cred, PRIV_NET_SETIFMAC);
if (error) {
mac_ifnet_label_free(intlabel);
return (error);