Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a5c96b51 authored by Kim Lilliestierna XX's avatar Kim Lilliestierna XX Committed by David S. Miller
Browse files

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: default avatarKim Lilliestierna <kim.xx.lilliestierna@stericsson.com>
Signed-off-by: default avatarSjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4e7bb59d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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) {