mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-17 22:05:08 +00:00
nfs: use ARRAY_SIZE() in the nfsacl_version3 declaration
Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
parent
c551858a88
commit
9ae7d8ff29
@ -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,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user