NLM: Clean up before introducing new debugging messages
We're about to introduce some extra debugging messages in nlm_lookup_host(). Bring the coding style up to date first so we can cleanly introduce the new debugging messages. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
This commit is contained in:
parent
a26cfad6e0
commit
c2526f4271
@ -103,16 +103,19 @@ static struct nlm_host *nlm_lookup_host(int server,
|
|||||||
nlm_get_host(host);
|
nlm_get_host(host);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* The host wasn't in our hash table. If we don't
|
||||||
|
* have an NSM handle for it yet, create one.
|
||||||
|
*/
|
||||||
if (nsm)
|
if (nsm)
|
||||||
atomic_inc(&nsm->sm_count);
|
atomic_inc(&nsm->sm_count);
|
||||||
|
else {
|
||||||
host = NULL;
|
host = NULL;
|
||||||
|
nsm = nsm_find(sin, hostname, hostname_len);
|
||||||
/* Sadly, the host isn't in our hash table yet. See if
|
if (!nsm)
|
||||||
* we have an NSM handle for it. If not, create one.
|
goto out;
|
||||||
*/
|
}
|
||||||
if (!nsm && !(nsm = nsm_find(sin, hostname, hostname_len)))
|
|
||||||
goto out;
|
|
||||||
|
|
||||||
host = kzalloc(sizeof(*host), GFP_KERNEL);
|
host = kzalloc(sizeof(*host), GFP_KERNEL);
|
||||||
if (!host) {
|
if (!host) {
|
||||||
|
Loading…
Reference in New Issue
Block a user