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>
This commit is contained in:
parent
4e7bb59d49
commit
a5c96b518c
|
@ -115,7 +115,7 @@ static bool cfhsi_can_send_aggregate(struct cfhsi *cfhsi)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (cfhsi->aggregation_timeout < 0)
|
if (cfhsi->aggregation_timeout == 0)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
for (i = 0; i < CFHSI_PRIO_BEBK; ++i) {
|
for (i = 0; i < CFHSI_PRIO_BEBK; ++i) {
|
||||||
|
|
Loading…
Reference in New Issue