From: Chuck Lever Date: Fri, 20 Oct 2006 06:28:44 +0000 (-0700) Subject: [PATCH] SUNRPC: fix a typo X-Git-Tag: v2.6.19-rc3~83 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7766da7f7395b74dec9e52005b7dac0d09391a4;p=linux-2.6 [PATCH] SUNRPC: fix a typo Yes, this actually passed tests the way it was. Signed-off-by: Chuck Lever Signed-off-by: Trond Myklebust Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 28100e0192..757fc91ef2 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c @@ -1366,7 +1366,7 @@ int xs_setup_udp(struct rpc_xprt *xprt, struct rpc_timeout *to) if (xprt->slot == NULL) return -ENOMEM; - if (ntohs(addr->sin_port != 0)) + if (ntohs(addr->sin_port) != 0) xprt_set_bound(xprt); xprt->port = xs_get_random_port();