aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/caif
diff options
context:
space:
mode:
authorKim Lilliestierna XX <kim.xx.lilliestierna@stericsson.com>2012-06-25 03:49:37 -0400
committerDavid S. Miller <davem@davemloft.net>2012-06-25 19:44:12 -0400
commita5c96b518c373fba35a8dc2e4e5fead24aeefb1c (patch)
tree92cbfe5e401514462dfbfc984379dfabd81689a2 /drivers/net/caif
parent4e7bb59d49fb00d4cf13484386d0400783f2c826 (diff)
caif-hsi: changed test on aggregation_timeout
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>
Diffstat (limited to 'drivers/net/caif')
-rw-r--r--drivers/net/caif/caif_hsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/caif/caif_hsi.c b/drivers/net/caif/caif_hsi.c
index f81f61fb39bc..56cc94120677 100644
--- a/drivers/net/caif/caif_hsi.c
+++ b/drivers/net/caif/caif_hsi.c
@@ -115,7 +115,7 @@ static bool cfhsi_can_send_aggregate(struct cfhsi *cfhsi)
115{ 115{
116 int i; 116 int i;
117 117
118 if (cfhsi->aggregation_timeout < 0) 118 if (cfhsi->aggregation_timeout == 0)
119 return true; 119 return true;
120 120
121 for (i = 0; i < CFHSI_PRIO_BEBK; ++i) { 121 for (i = 0; i < CFHSI_PRIO_BEBK; ++i) {