Răsfoiți Sursa

[PATCH] SUNRPC: fix a typo

Yes, this actually passed tests the way it was.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Chuck Lever 18 ani în urmă
părinte
comite
b7766da7f7
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      net/sunrpc/xprtsock.c

+ 1 - 1
net/sunrpc/xprtsock.c

@@ -1366,7 +1366,7 @@ int xs_setup_udp(struct rpc_xprt *xprt, struct rpc_timeout *to)
 	if (xprt->slot == NULL)
 	if (xprt->slot == NULL)
 		return -ENOMEM;
 		return -ENOMEM;
 
 
-	if (ntohs(addr->sin_port != 0))
+	if (ntohs(addr->sin_port) != 0)
 		xprt_set_bound(xprt);
 		xprt_set_bound(xprt);
 	xprt->port = xs_get_random_port();
 	xprt->port = xs_get_random_port();