提交 82aaf4fc 编写于 作者: O One Thousand Gnomes 提交者: David S. Miller

af_llc: fix types on llc_ui_wait_for_conn

The timeout is a long, we return it truncated if it is huge. Basically
harmless as the only caller does a boolean check, but tidy it up anyway.

(64bit build tested this time. Thank you 0day)
Signed-off-by: NAlan Cox <alan@linux.intel.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 fc48b7a6
...@@ -38,7 +38,7 @@ static u16 llc_ui_sap_link_no_max[256]; ...@@ -38,7 +38,7 @@ static u16 llc_ui_sap_link_no_max[256];
static struct sockaddr_llc llc_ui_addrnull; static struct sockaddr_llc llc_ui_addrnull;
static const struct proto_ops llc_ui_ops; static const struct proto_ops llc_ui_ops;
static int llc_ui_wait_for_conn(struct sock *sk, long timeout); static long llc_ui_wait_for_conn(struct sock *sk, long timeout);
static int llc_ui_wait_for_disc(struct sock *sk, long timeout); static int llc_ui_wait_for_disc(struct sock *sk, long timeout);
static int llc_ui_wait_for_busy_core(struct sock *sk, long timeout); static int llc_ui_wait_for_busy_core(struct sock *sk, long timeout);
...@@ -551,7 +551,7 @@ static int llc_ui_wait_for_disc(struct sock *sk, long timeout) ...@@ -551,7 +551,7 @@ static int llc_ui_wait_for_disc(struct sock *sk, long timeout)
return rc; return rc;
} }
static int llc_ui_wait_for_conn(struct sock *sk, long timeout) static long llc_ui_wait_for_conn(struct sock *sk, long timeout)
{ {
DEFINE_WAIT(wait); DEFINE_WAIT(wait);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册