aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2016-09-15 13:51:25 -0400
committerDavid S. Miller <davem@davemloft.net>2016-09-17 10:05:05 -0400
commit5ff904d55da821fd194ff493f2928d134ce5b67a (patch)
tree9010cf49f331b1385cca2caaf636eb003c816d58
parent19664c6a000956290cce84c6924b13488ab794d6 (diff)
llc: switch type to bool as the timeout is only tested versus 0
(As asked by Dave in Februrary) Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/llc/af_llc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/llc/af_llc.c b/net/llc/af_llc.c
index 8ae3ed97d95c..db916cf51ffe 100644
--- a/net/llc/af_llc.c
+++ b/net/llc/af_llc.c
@@ -38,7 +38,7 @@ static u16 llc_ui_sap_link_no_max[256];
38static struct sockaddr_llc llc_ui_addrnull; 38static struct sockaddr_llc llc_ui_addrnull;
39static const struct proto_ops llc_ui_ops; 39static const struct proto_ops llc_ui_ops;
40 40
41static long llc_ui_wait_for_conn(struct sock *sk, long timeout); 41static bool llc_ui_wait_for_conn(struct sock *sk, long timeout);
42static int llc_ui_wait_for_disc(struct sock *sk, long timeout); 42static int llc_ui_wait_for_disc(struct sock *sk, long timeout);
43static int llc_ui_wait_for_busy_core(struct sock *sk, long timeout); 43static int llc_ui_wait_for_busy_core(struct sock *sk, long timeout);
44 44
@@ -551,7 +551,7 @@ static int llc_ui_wait_for_disc(struct sock *sk, long timeout)
551 return rc; 551 return rc;
552} 552}
553 553
554static long llc_ui_wait_for_conn(struct sock *sk, long timeout) 554static bool llc_ui_wait_for_conn(struct sock *sk, long timeout)
555{ 555{
556 DEFINE_WAIT(wait); 556 DEFINE_WAIT(wait);
557 557