caif-hsi: changed test on aggregation_timeout
authorKim Lilliestierna XX <[email protected]>
Mon, 25 Jun 2012 07:49:37 +0000 (07:49 +0000)
committerDavid S. Miller <[email protected]>
Mon, 25 Jun 2012 23:44:12 +0000 (16:44 -0700)
Aggregation_timeout is an unsigned long,
a test for less than zero can never become true,
compare with zero instead.

Signed-off-by: Kim Lilliestierna <[email protected]>
Signed-off-by: Sjur Brændeland <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/caif/caif_hsi.c

index f81f61fb39bc5c49ec9d42022e855dc720ab1604..56cc941206771042266249a9c4a9d78ccfa5984a 100644 (file)
@@ -115,7 +115,7 @@ static bool cfhsi_can_send_aggregate(struct cfhsi *cfhsi)
 {
        int i;
 
-       if (cfhsi->aggregation_timeout < 0)
+       if (cfhsi->aggregation_timeout == 0)
                return true;
 
        for (i = 0; i < CFHSI_PRIO_BEBK; ++i) {