aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs3xdr.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-05-12 15:51:24 +0200
committerChristoph Hellwig <hch@lst.de>2017-05-15 17:42:19 +0200
commitf700c72dd2f1f886f56788436b540aab95903c3f (patch)
tree6576f44a84eac1225b3b02970324ca62068f2444 /fs/nfs/nfs3xdr.c
parentsunrpc: move p_count out of struct rpc_procinfo (diff)
downloadlinux-dev-f700c72dd2f1f886f56788436b540aab95903c3f.tar.xz
linux-dev-f700c72dd2f1f886f56788436b540aab95903c3f.zip
nfs: use ARRAY_SIZE() in the nfsacl_version3 declaration
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to '')
-rw-r--r--fs/nfs/nfs3xdr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/nfs3xdr.c b/fs/nfs/nfs3xdr.c
index a017ec5c7a9d..85ff1187e637 100644
--- a/fs/nfs/nfs3xdr.c
+++ b/fs/nfs/nfs3xdr.c
@@ -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,
};