llc: switch type to bool as the timeout is only tested versus 0
authorAlan Cox <alan@linux.intel.com>
Thu, 15 Sep 2016 17:51:25 +0000 (18:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 17 Sep 2016 14:05:05 +0000 (10:05 -0400)
(As asked by Dave in Februrary)

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/llc/af_llc.c

index 8ae3ed97d95cb4a5f05b69b8c2922d57072a6fd1..db916cf51ffeabd3d5246cb09a9e7227d483f574 100644 (file)
@@ -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);