diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2023-01-02 12:07:20 -0500 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2023-02-20 09:20:17 -0500 |
commit | 6734706bc0b834c334aed2551ad046bf5b6a50d4 (patch) | |
tree | 69998cd6ffb715f395230cd577e83ce452787754 /net/sunrpc/svcauth_unix.c | |
parent | 0653028e8f1c97fec30710813a001ad8a2ec34f4 (diff) | |
download | linux-6734706bc0b834c334aed2551ad046bf5b6a50d4.tar.gz linux-6734706bc0b834c334aed2551ad046bf5b6a50d4.tar.bz2 linux-6734706bc0b834c334aed2551ad046bf5b6a50d4.zip |
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>
Diffstat (limited to 'net/sunrpc/svcauth_unix.c')
0 files changed, 0 insertions, 0 deletions