lockd: nlm_release_host() checks for NULL, caller needn't
[linux-2.6.git] / fs / lockd / svcproc.c
index 88379cc..fce3d70 100644 (file)
@@ -87,8 +87,7 @@ nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp,
        return 0;
 
 no_locks:
-       if (host)
-               nlm_release_host(host);
+       nlm_release_host(host);
        if (error)
                return error;
        return nlm_lck_denied_nolocks;