[PATCH] llc: switch type to bool as the timeout is only tested versus 0

Subsystems: llc (802.2), networking [general], the rest

STALE3681d

2 messages, 2 authors, 2016-09-17 · open the first message on its own page

[PATCH] llc: switch type to bool as the timeout is only tested versus 0

From: Alan <hidden>
Date: 2016-09-15 17:51:33

(As asked by Dave in Februrary)

Signed-off-by: Alan Cox <redacted>

---
 net/llc/af_llc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/net/llc/af_llc.c b/net/llc/af_llc.c
index 8ae3ed9..db916cf 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];
 static struct sockaddr_llc llc_ui_addrnull;
 static const struct proto_ops llc_ui_ops;
 
-static long llc_ui_wait_for_conn(struct sock *sk, long timeout);
+static bool 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_busy_core(struct sock *sk, long timeout);
 
@@ -551,7 +551,7 @@ static int llc_ui_wait_for_disc(struct sock *sk, long timeout)
 	return rc;
 }
 
-static long llc_ui_wait_for_conn(struct sock *sk, long timeout)
+static bool llc_ui_wait_for_conn(struct sock *sk, long timeout)
 {
 	DEFINE_WAIT(wait);
 

Re: [PATCH] llc: switch type to bool as the timeout is only tested versus 0

From: David Miller <davem@davemloft.net>
Date: 2016-09-17 14:05:50

From: Alan <redacted>
Date: Thu, 15 Sep 2016 18:51:25 +0100
(As asked by Dave in Februrary)

Signed-off-by: Alan Cox <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help