From: Jesper Juhl Date: Sun, 7 Nov 2010 21:11:34 +0000 (+0100) Subject: SUNRPC: Simplify rpc_alloc_iostats by removing pointless local variable X-Git-Tag: v2.6.37-rc3~28^2~1 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=94f58df8e545657f0b2d16eca1ac7a4ec39ed6be;p=~emulex%2Finfiniband.git 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 Signed-off-by: Trond Myklebust --- diff --git a/net/sunrpc/stats.c b/net/sunrpc/stats.c index f71a73107ae..80df89d957b 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);