Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b0e92aae authored by Jeff Layton's avatar Jeff Layton Committed by J. Bruce Fields
Browse files

lockd: nlm_release_host() checks for NULL, caller needn't



No need to check for a NULL argument twice.

Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent afc1246f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -58,7 +58,6 @@ nlm4svc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp,
	return 0;

no_locks:
	if (host)
	nlm_release_host(host);
 	if (error)
		return error;	
+1 −2
Original line number Diff line number Diff line
@@ -87,7 +87,6 @@ nlmsvc_retrieve_args(struct svc_rqst *rqstp, struct nlm_args *argp,
	return 0;

no_locks:
	if (host)
	nlm_release_host(host);
	if (error)
		return error;