Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=fbb7878c1a2ee40a1e983bf20f3dd3a80255dcf2
Commit:     fbb7878c1a2ee40a1e983bf20f3dd3a80255dcf2
Parent:     c64e80d55db81df22a7f25b75ab4ba4c55db4749
Author:     J. Bruce Fields <[EMAIL PROTECTED]>
AuthorDate: Thu Feb 7 23:10:21 2008 -0500
Committer:  J. Bruce Fields <[EMAIL PROTECTED]>
CommitDate: Sun Feb 10 18:11:16 2008 -0500

    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 <[EMAIL PROTECTED]>
    Cc: Trond Myklebust <[EMAIL PROTECTED]>
---
 include/linux/sunrpc/svc.h |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h
index 64c7710..64c9755 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);
  * for all cases without actually generating the checksum, so we just use a
  * static value.
  */
-static inline void
-svc_reserve_auth(struct svc_rqst *rqstp, int space)
+static inline void svc_reserve_auth(struct svc_rqst *rqstp, int space)
 {
-       int                     added_space = 0;
+       int added_space = 0;
 
-       switch(rqstp->rq_authop->flavour) {
-               case RPC_AUTH_GSS:
-                       added_space = RPC_MAX_AUTH_SIZE;
-       }
-       return svc_reserve(rqstp, space + added_space);
+       if (rqstp->rq_authop->flavour)
+               added_space = RPC_MAX_AUTH_SIZE;
+       svc_reserve(rqstp, space + added_space);
 }
 
 #endif /* SUNRPC_SVC_H */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to