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>
This commit is contained in:
parent
5685b97136
commit
94f58df8e5
@ -115,9 +115,7 @@ EXPORT_SYMBOL_GPL(svc_seq_show);
|
|||||||
*/
|
*/
|
||||||
struct rpc_iostats *rpc_alloc_iostats(struct rpc_clnt *clnt)
|
struct rpc_iostats *rpc_alloc_iostats(struct rpc_clnt *clnt)
|
||||||
{
|
{
|
||||||
struct rpc_iostats *new;
|
return kcalloc(clnt->cl_maxproc, sizeof(struct rpc_iostats), GFP_KERNEL);
|
||||||
new = kcalloc(clnt->cl_maxproc, sizeof(struct rpc_iostats), GFP_KERNEL);
|
|
||||||
return new;
|
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(rpc_alloc_iostats);
|
EXPORT_SYMBOL_GPL(rpc_alloc_iostats);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user