/* A transport listener is removed by writing a "-", it's transport name, and it's port number.  */
static ssize_t __write_ports_delxprt(char *buf)
/* A transport listener is removed by writing a "-", it's transport name, and it's port number.  */
static ssize_t __write_ports_delxprt(char *buf)
{
	struct svc_xprt *xprt;
	char transport[16];
	int port;
	if (sscanf(&buf[1], "%15s %4u", transport, &port) != 2)
		return -EINVAL;
	if (port < 1 || port > USHORT_MAX || nfsd_serv == NULL)
		return -EINVAL;
	xprt = svc_find_xprt(nfsd_serv, transport, AF_UNSPEC, port);
	if (xprt == NULL)
		return -ENOTCONN;
	svc_close_xprt(xprt);
	svc_xprt_put(xprt);
	return 0;
}