aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2008-02-07 23:10:21 -0500
committerJ. Bruce Fields <bfields@citi.umich.edu>2008-02-10 18:11:16 -0500
commitfbb7878c1a2ee40a1e983bf20f3dd3a80255dcf2 (patch)
tree9a03b3a15f105299bd3540dc20fb7e2c7953e29b /include
parentc64e80d55db81df22a7f25b75ab4ba4c55db4749 (diff)
nfsd: clean up svc_reserve_auth()
This is a void function attempting to return the return value from another void function, which seems harmless but extremely weird, and apparently makes some compilers complain. While we're there, clean up a little (e.g. the switch statement had a minor style problem and seemed overkill as long as there's only one case). Thanks to Trond for noticing this. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Cc: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sunrpc/svc.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h
index 64c771056187..64c97552964a 100644
--- a/include/linux/sunrpc/svc.h
+++ b/include/linux/sunrpc/svc.h
@@ -409,16 +409,13 @@ char * svc_print_addr(struct svc_rqst *, char *, size_t);
409 * for all cases without actually generating the checksum, so we just use a 409 * for all cases without actually generating the checksum, so we just use a
410 * static value. 410 * static value.
411 */ 411 */
412static inline void 412static inline void svc_reserve_auth(struct svc_rqst *rqstp, int space)
413svc_reserve_auth(struct svc_rqst *rqstp, int space)
414{ 413{
415 int added_space = 0; 414 int added_space = 0;
416 415
417 switch(rqstp->rq_authop->flavour) { 416 if (rqstp->rq_authop->flavour)
418 case RPC_AUTH_GSS: 417 added_space = RPC_MAX_AUTH_SIZE;
419 added_space = RPC_MAX_AUTH_SIZE; 418 svc_reserve(rqstp, space + added_space);
420 }
421 return svc_reserve(rqstp, space + added_space);
422} 419}
423 420
424#endif /* SUNRPC_SVC_H */ 421#endif /* SUNRPC_SVC_H */