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

Commit af4718f3 authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd: minor nfsd_svc() cleanup



More idiomatic to put the error case in the if clause.

Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 59db4a0c
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -443,7 +443,8 @@ nfsd_svc(unsigned short port, int nrservs)
	if (error)
		goto out_shutdown;
	error = svc_set_num_threads(nfsd_serv, NULL, nrservs);
	if (error == 0)
	if (error)
		goto out_destroy;
	/* We are holding a reference to nfsd_serv which
	 * we don't want to count in the return value,
	 * so subtract 1