projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[NET]: Conversions from kmalloc+memset to k(z|c)alloc.
[deliverable/linux.git]
/
net
/
sunrpc
/
clnt.c
diff --git
a/net/sunrpc/clnt.c
b/net/sunrpc/clnt.c
index aa8965e9d30770cec269d1dfe6cd0bccb490dfa1..4ba271f892c8791714e635f91f32d50eb1dbd32d 100644
(file)
--- a/
net/sunrpc/clnt.c
+++ b/
net/sunrpc/clnt.c
@@
-125,10
+125,9
@@
rpc_new_client(struct rpc_xprt *xprt, char *servname,
goto out_err;
err = -ENOMEM;
goto out_err;
err = -ENOMEM;
- clnt = k
m
alloc(sizeof(*clnt), GFP_KERNEL);
+ clnt = k
z
alloc(sizeof(*clnt), GFP_KERNEL);
if (!clnt)
goto out_err;
if (!clnt)
goto out_err;
- memset(clnt, 0, sizeof(*clnt));
atomic_set(&clnt->cl_users, 0);
atomic_set(&clnt->cl_count, 1);
clnt->cl_parent = clnt;
atomic_set(&clnt->cl_users, 0);
atomic_set(&clnt->cl_count, 1);
clnt->cl_parent = clnt;
This page took
0.024114 seconds
and
5
git commands to generate.