nfs: use ARRAY_SIZE() in the nfsacl_version3 declaration

Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
Christoph Hellwig 2017-05-12 15:51:24 +02:00
Родитель 1c5876ddbd
Коммит f700c72dd2
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -2611,8 +2611,7 @@ static struct rpc_procinfo nfs3_acl_procedures[] = {
static unsigned int nfs3_acl_counts[ARRAY_SIZE(nfs3_acl_procedures)]; static unsigned int nfs3_acl_counts[ARRAY_SIZE(nfs3_acl_procedures)];
const struct rpc_version nfsacl_version3 = { const struct rpc_version nfsacl_version3 = {
.number = 3, .number = 3,
.nrprocs = sizeof(nfs3_acl_procedures)/ .nrprocs = ARRAY_SIZE(nfs3_acl_procedures),
sizeof(nfs3_acl_procedures[0]),
.procs = nfs3_acl_procedures, .procs = nfs3_acl_procedures,
.counts = nfs3_acl_counts, .counts = nfs3_acl_counts,
}; };