projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c551858
)
nfs: use ARRAY_SIZE() in the nfsacl_version3 declaration
author
Christoph Hellwig
<hch@lst.de>
Fri, 12 May 2017 13:51:24 +0000
(15:51 +0200)
committer
Anna Schumaker
<Anna.Schumaker@Netapp.com>
Thu, 13 Jul 2017 19:57:57 +0000
(15:57 -0400)
Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/nfs/nfs3xdr.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs3xdr.c
b/fs/nfs/nfs3xdr.c
index a017ec5c7a9d6f3b85cdc53992050d13eadc262b..85ff1187e637f769c1845eabcc49a8ca5aa46973 100644
(file)
--- 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,
};