diff options
author | Jesper Juhl <jj@chaosbits.net> | 2010-11-07 22:11:34 +0100 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-11-16 11:58:51 -0500 |
commit | 94f58df8e545657f0b2d16eca1ac7a4ec39ed6be (patch) | |
tree | cf914f47862fdabb86257f18b671754c38c2ca8f /net/sunrpc | |
parent | 5685b971362651ee3d99ff3cc512c3bbd049d34d (diff) | |
download | kernel_samsung_espresso10-94f58df8e545657f0b2d16eca1ac7a4ec39ed6be.zip kernel_samsung_espresso10-94f58df8e545657f0b2d16eca1ac7a4ec39ed6be.tar.gz kernel_samsung_espresso10-94f58df8e545657f0b2d16eca1ac7a4ec39ed6be.tar.bz2 |
SUNRPC: Simplify rpc_alloc_iostats by removing pointless local variable
Hi,
We can simplify net/sunrpc/stats.c::rpc_alloc_iostats() a bit by getting
rid of the unneeded local variable 'new'.
Please CC me on replies.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/stats.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sunrpc/stats.c b/net/sunrpc/stats.c index f71a731..80df89d 100644 --- a/net/sunrpc/stats.c +++ b/net/sunrpc/stats.c @@ -115,9 +115,7 @@ EXPORT_SYMBOL_GPL(svc_seq_show); */ struct rpc_iostats *rpc_alloc_iostats(struct rpc_clnt *clnt) { - struct rpc_iostats *new; - new = kcalloc(clnt->cl_maxproc, sizeof(struct rpc_iostats), GFP_KERNEL); - return new; + return kcalloc(clnt->cl_maxproc, sizeof(struct rpc_iostats), GFP_KERNEL); } EXPORT_SYMBOL_GPL(rpc_alloc_iostats); |