Skip to content

Commit

Permalink
caif-hsi: changed test on aggregation_timeout
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kim Lilliestierna XX authored and David S. Miller committed Jun 25, 2012
1 parent 4e7bb59 commit a5c96b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/caif/caif_hsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a5c96b5

Please sign in to comment.