mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-11-07 04:09:21 +00:00
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
2 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue