diff options
-rw-r--r-- | fs/lockd/mon.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/fs/lockd/mon.c b/fs/lockd/mon.c index ffd3461f75ef..6f6ff410341a 100644 --- a/fs/lockd/mon.c +++ b/fs/lockd/mon.c | |||
@@ -37,7 +37,13 @@ nsm_mon_unmon(struct nsm_handle *nsm, u32 proc, struct nsm_res *res) | |||
37 | { | 37 | { |
38 | struct rpc_clnt *clnt; | 38 | struct rpc_clnt *clnt; |
39 | int status; | 39 | int status; |
40 | struct nsm_args args; | 40 | struct nsm_args args = { |
41 | .addr = nsm_addr_in(nsm)->sin_addr.s_addr, | ||
42 | .prog = NLM_PROGRAM, | ||
43 | .vers = 3, | ||
44 | .proc = NLMPROC_NSM_NOTIFY, | ||
45 | .mon_name = nsm->sm_name, | ||
46 | }; | ||
41 | struct rpc_message msg = { | 47 | struct rpc_message msg = { |
42 | .rpc_argp = &args, | 48 | .rpc_argp = &args, |
43 | .rpc_resp = res, | 49 | .rpc_resp = res, |
@@ -49,12 +55,6 @@ nsm_mon_unmon(struct nsm_handle *nsm, u32 proc, struct nsm_res *res) | |||
49 | goto out; | 55 | goto out; |
50 | } | 56 | } |
51 | 57 | ||
52 | memset(&args, 0, sizeof(args)); | ||
53 | args.mon_name = nsm->sm_name; | ||
54 | args.addr = nsm_addr_in(nsm)->sin_addr.s_addr; | ||
55 | args.prog = NLM_PROGRAM; | ||
56 | args.vers = 3; | ||
57 | args.proc = NLMPROC_NSM_NOTIFY; | ||
58 | memset(res, 0, sizeof(*res)); | 58 | memset(res, 0, sizeof(*res)); |
59 | 59 | ||
60 | msg.rpc_proc = &clnt->cl_procinfo[proc]; | 60 | msg.rpc_proc = &clnt->cl_procinfo[proc]; |