Commit eeea5361 authored by Anna Schumaker's avatar Anna Schumaker

NFS: Clean up _nfs4_is_integrity_protected()

We can cut out the if statement and return the results of the comparison
directly.
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent d9b67e1e
...@@ -577,12 +577,7 @@ nfs4_async_handle_error(struct rpc_task *task, struct nfs_server *server, ...@@ -577,12 +577,7 @@ nfs4_async_handle_error(struct rpc_task *task, struct nfs_server *server,
static bool _nfs4_is_integrity_protected(struct nfs_client *clp) static bool _nfs4_is_integrity_protected(struct nfs_client *clp)
{ {
rpc_authflavor_t flavor = clp->cl_rpcclient->cl_auth->au_flavor; rpc_authflavor_t flavor = clp->cl_rpcclient->cl_auth->au_flavor;
return (flavor == RPC_AUTH_GSS_KRB5I) || (flavor == RPC_AUTH_GSS_KRB5P);
if (flavor == RPC_AUTH_GSS_KRB5I ||
flavor == RPC_AUTH_GSS_KRB5P)
return true;
return false;
} }
static void do_renew_lease(struct nfs_client *clp, unsigned long timestamp) static void do_renew_lease(struct nfs_client *clp, unsigned long timestamp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment