caif-hsi: changed test on aggregation_timeout
authorKim Lilliestierna XX <kim.xx.lilliestierna@stericsson.com>
Mon, 25 Jun 2012 07:49:37 +0000 (07:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
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 <kim.xx.lilliestierna@stericsson.com>
Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/caif/caif_hsi.c

index f81f61f..56cc941 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) {