lockd: nlm_release_host() checks for NULL, caller needn't
No need to check for a NULL argument twice. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
This commit is contained in:
parent
afc1246f91
commit
b0e92aae15
|
@ -58,7 +58,6 @@ nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp,
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
no_locks:
|
no_locks:
|
||||||
if (host)
|
|
||||||
nlm_release_host(host);
|
nlm_release_host(host);
|
||||||
if (error)
|
if (error)
|
||||||
return error;
|
return error;
|
||||||
|
|
|
@ -87,7 +87,6 @@ nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp,
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
no_locks:
|
no_locks:
|
||||||
if (host)
|
|
||||||
nlm_release_host(host);
|
nlm_release_host(host);
|
||||||
if (error)
|
if (error)
|
||||||
return error;
|
return error;
|
||||||
|
|
Reference in New Issue