提交 9ae7d8ff 编写于 作者: C Christoph Hellwig 提交者: Anna Schumaker

nfs: use ARRAY_SIZE() in the nfsacl_version3 declaration

Signed-off-by: NChristoph Hellwig <hch@lst.de>
上级 c551858a
......@@ -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,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册