summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2011-02-23 13:03:19 -0800
committerBrian Behlendorf <[email protected]>2011-02-23 13:03:19 -0800
commitf6dcdf13f80ee039141ab92ae506bd4443111662 (patch)
treeb3f8ad9324d05d4703cad0c083bcf83ac2b4eede
parent718d77f622463e1763c4f6d5cbfb7740d7e6968d (diff)
Fix 'statement with no effect' warning
Because the secpolicy_* macros are all currently defined to (0). And because the caller of this function does not check the return code. The compiler complains that this statement has no effect which is correct and OK. To suppress the warning explictly cast the result to (void).
-rw-r--r--module/zfs/zfs_vnops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zfs_vnops.c b/module/zfs/zfs_vnops.c
index b20e3b2c3..821ececde 100644
--- a/module/zfs/zfs_vnops.c
+++ b/module/zfs/zfs_vnops.c
@@ -2274,7 +2274,7 @@ top:
/*
* Remove setuid/setgid for non-privileged users
*/
- secpolicy_setid_clear(attr, cr);
+ (void) secpolicy_setid_clear(attr, cr);
trim_mask = (mask & (ATTR_UID|ATTR_GID));
} else {
need_policy = TRUE;