Skip to content

Commit

Permalink
nfs: use ARRAY_SIZE() in the nfsacl_version3 declaration
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Hellwig <[email protected]>
  • Loading branch information
Christoph Hellwig authored and amschuma-ntap committed Jul 13, 2017
1 parent c551858 commit 9ae7d8f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/nfs/nfs3xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -2611,8 +2611,7 @@ static struct rpc_procinfo nfs3_acl_procedures[] = {
static unsigned int nfs3_acl_counts[ARRAY_SIZE(nfs3_acl_procedures)];
const struct rpc_version nfsacl_version3 = {
.number = 3,
.nrprocs = sizeof(nfs3_acl_procedures)/
sizeof(nfs3_acl_procedures[0]),
.nrprocs = ARRAY_SIZE(nfs3_acl_procedures),
.procs = nfs3_acl_procedures,
.counts = nfs3_acl_counts,
};
Expand Down

0 comments on commit 9ae7d8f

Please sign in to comment.