sunrpc: fix debug message in svc_create_xprt()

_svc_create_xprt() returns positive port number
so its non-zero return value is not an error

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
Vasily Averin 2018-12-24 14:46:14 +03:00 committed by J. Bruce Fields
parent 8f7766c805
commit 9ac312888e
1 changed files with 2 additions and 2 deletions

View File

@ -296,9 +296,9 @@ int svc_create_xprt(struct svc_serv *serv, const char *xprt_name,
request_module("svc%s", xprt_name);
err = _svc_create_xprt(serv, xprt_name, net, family, port, flags);
}
if (err)
if (err < 0)
dprintk("svc: transport %s not found, err %d\n",
xprt_name, err);
xprt_name, -err);
return err;
}
EXPORT_SYMBOL_GPL(svc_create_xprt);