lockd: nlm_release_host() checks for NULL, caller needn't
[safe/jmp/linux-2.6] / fs / lockd / svc4proc.c
index 385437e..006a832 100644 (file)
@@ -58,8 +58,7 @@ nlm4svc_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;