SUNRPC: Clean up svcauth_gss_accept's NULL procedure check
authorChuck Lever <chuck.lever@oracle.com>
Mon, 2 Jan 2023 17:07:20 +0000 (12:07 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 20 Feb 2023 14:20:17 +0000 (09:20 -0500)
commit6734706bc0b834c334aed2551ad046bf5b6a50d4
tree69998cd6ffb715f395230cd577e83ce452787754
parent0653028e8f1c97fec30710813a001ad8a2ec34f4
SUNRPC: Clean up svcauth_gss_accept's NULL procedure check

Micro-optimizations:

1. The value of rqstp->rq_auth_stat is replaced no matter which
   arm of the switch is taken, so the initial assignment can be
   safely removed.

2. Avoid checking the value of gc->gc_proc twice in the I/O
   (RPC_GSS_PROC_DATA) path.

The cost is a little extra code redundancy.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/auth_gss/svcauth_gss.c