From: Jeff Layton Date: Thu, 10 Jul 2014 18:07:32 +0000 (-0400) Subject: nfsd: clean up reset_union_bmap_deny X-Git-Tag: v3.17-rc1~58^2~116 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3b84240a7b756e3fea8eaea5a29e7c10afbd0a47;p=karo-tx-linux.git nfsd: clean up reset_union_bmap_deny Fix the "deny" argument type, and start the loop at 1. The 0 iteration is always a noop. Signed-off-by: Jeff Layton Reviewed-by: Christoph Hellwig Signed-off-by: J. Bruce Fields --- diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 0a54fc956463..5f7294712ad4 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -4266,10 +4266,11 @@ static inline void nfs4_stateid_downgrade(struct nfs4_ol_stateid *stp, u32 to_ac } static void -reset_union_bmap_deny(unsigned long deny, struct nfs4_ol_stateid *stp) +reset_union_bmap_deny(u32 deny, struct nfs4_ol_stateid *stp) { int i; - for (i = 0; i < 4; i++) { + + for (i = 1; i < 4; i++) { if ((i & deny) != i) clear_deny(i, stp); }