diff options
Diffstat (limited to 'net/sunrpc/auth.c')
-rw-r--r-- | net/sunrpc/auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c index d2623b9f23d6..305ecea92170 100644 --- a/net/sunrpc/auth.c +++ b/net/sunrpc/auth.c | |||
@@ -50,7 +50,7 @@ static int param_set_hashtbl_sz(const char *val, const struct kernel_param *kp) | |||
50 | if (!val) | 50 | if (!val) |
51 | goto out_inval; | 51 | goto out_inval; |
52 | ret = kstrtoul(val, 0, &num); | 52 | ret = kstrtoul(val, 0, &num); |
53 | if (ret == -EINVAL) | 53 | if (ret) |
54 | goto out_inval; | 54 | goto out_inval; |
55 | nbits = fls(num - 1); | 55 | nbits = fls(num - 1); |
56 | if (nbits > MAX_HASHTABLE_BITS || nbits < 2) | 56 | if (nbits > MAX_HASHTABLE_BITS || nbits < 2) |
@@ -253,7 +253,7 @@ rpcauth_list_flavors(rpc_authflavor_t *array, int size) | |||
253 | EXPORT_SYMBOL_GPL(rpcauth_list_flavors); | 253 | EXPORT_SYMBOL_GPL(rpcauth_list_flavors); |
254 | 254 | ||
255 | struct rpc_auth * | 255 | struct rpc_auth * |
256 | rpcauth_create(struct rpc_auth_create_args *args, struct rpc_clnt *clnt) | 256 | rpcauth_create(const struct rpc_auth_create_args *args, struct rpc_clnt *clnt) |
257 | { | 257 | { |
258 | struct rpc_auth *auth; | 258 | struct rpc_auth *auth; |
259 | const struct rpc_authops *ops; | 259 | const struct rpc_authops *ops; |