aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4callback.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@nuerscht.ch>2006-03-24 06:15:34 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-24 10:33:19 -0500
commite8c96f8c29d89af0c13dc2819a9a00575846ca18 (patch)
treeb90ed0da4803df56a91be5979580e335af2d697c /fs/nfsd/nfs4callback.c
parentb5029622ac86bb441dc5e641226fb1152fca02d7 (diff)
[PATCH] fs: Use ARRAY_SIZE macro
Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) and remove a duplicate of ARRAY_SIZE. Some trailing whitespaces are also deleted. Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch> Cc: David Howells <dhowells@redhat.com> Cc: Dave Kleikamp <shaggy@austin.ibm.com> Acked-by: Trond Myklebust <trond.myklebust@fys.uio.no> Cc: Neil Brown <neilb@cse.unsw.edu.au> Cc: Chris Mason <mason@suse.com> Cc: Jeff Mahoney <jeffm@suse.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Nathan Scott <nathans@sgi.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/nfsd/nfs4callback.c')
-rw-r--r--fs/nfsd/nfs4callback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c
index d828662d737d..8d3d23c8a4d2 100644
--- a/fs/nfsd/nfs4callback.c
+++ b/fs/nfsd/nfs4callback.c
@@ -335,7 +335,7 @@ static struct rpc_procinfo nfs4_cb_procedures[] = {
335 335
336static struct rpc_version nfs_cb_version4 = { 336static struct rpc_version nfs_cb_version4 = {
337 .number = 1, 337 .number = 1,
338 .nrprocs = sizeof(nfs4_cb_procedures)/sizeof(nfs4_cb_procedures[0]), 338 .nrprocs = ARRAY_SIZE(nfs4_cb_procedures),
339 .procs = nfs4_cb_procedures 339 .procs = nfs4_cb_procedures
340}; 340};
341 341
@@ -411,7 +411,7 @@ nfsd4_probe_callback(struct nfs4_client *clp)
411 /* Initialize rpc_program */ 411 /* Initialize rpc_program */
412 program->name = "nfs4_cb"; 412 program->name = "nfs4_cb";
413 program->number = cb->cb_prog; 413 program->number = cb->cb_prog;
414 program->nrvers = sizeof(nfs_cb_version)/sizeof(nfs_cb_version[0]); 414 program->nrvers = ARRAY_SIZE(nfs_cb_version);
415 program->version = nfs_cb_version; 415 program->version = nfs_cb_version;
416 program->stats = stat; 416 program->stats = stat;
417 417