aboutsummaryrefslogtreecommitdiffstats
path: root/fs/lockd/mon.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/lockd/mon.c')
-rw-r--r--fs/lockd/mon.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/lockd/mon.c b/fs/lockd/mon.c
index aaaa08e7ae7a..15fab22db028 100644
--- a/fs/lockd/mon.c
+++ b/fs/lockd/mon.c
@@ -117,10 +117,6 @@ nsm_unmonitor(struct nlm_host *host)
117 struct nsm_res res; 117 struct nsm_res res;
118 int status = 0; 118 int status = 0;
119 119
120 if (nsm == NULL)
121 return 0;
122 host->h_nsmhandle = NULL;
123
124 if (atomic_read(&nsm->sm_count) == 1 120 if (atomic_read(&nsm->sm_count) == 1
125 && nsm->sm_monitored && !nsm->sm_sticky) { 121 && nsm->sm_monitored && !nsm->sm_sticky) {
126 dprintk("lockd: nsm_unmonitor(%s)\n", nsm->sm_name); 122 dprintk("lockd: nsm_unmonitor(%s)\n", nsm->sm_name);
@@ -132,7 +128,6 @@ nsm_unmonitor(struct nlm_host *host)
132 else 128 else
133 nsm->sm_monitored = 0; 129 nsm->sm_monitored = 0;
134 } 130 }
135 nsm_release(nsm);
136 return status; 131 return status;
137} 132}
138 133