]> err.no Git - linux-2.6/blobdiff - net/sunrpc/auth.c
[PATCH] svcrpc: save and restore the daddr field when request deferred
[linux-2.6] / net / sunrpc / auth.c
index 8c7756036e95847f6ae2eaf1ef75fac65c3fe4a6..9ac1b8c26c01184595f34de62db8ef23b15c6890 100644 (file)
@@ -94,7 +94,7 @@ rpcauth_init_credcache(struct rpc_auth *auth, unsigned long expire)
        struct rpc_cred_cache *new;
        int i;
 
-       new = (struct rpc_cred_cache *)kmalloc(sizeof(*new), GFP_KERNEL);
+       new = kmalloc(sizeof(*new), GFP_KERNEL);
        if (!new)
                return -ENOMEM;
        for (i = 0; i < RPC_CREDCACHE_NR; i++)