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

Commit bed49c69 authored by Roberto Rodriguez Alkala's avatar Roberto Rodriguez Alkala Committed by Greg Kroah-Hartman
Browse files

staging: otus: fix compile warning and some style issues



In today linux-next I got a compile warning in staging/otus driver.
This patch solves the issue and also improves the coding style.

Signed-off-by: default avatarRoberto Rodriguez Alcala <rralcala@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 1033f1f7
Loading
Loading
Loading
Loading
+9 −17
Original line number Diff line number Diff line
@@ -422,24 +422,16 @@ u8_t zfRateCtrlRateDiff(struct zsRcCell* rcCell, u8_t retryRate)
    u16_t i;

    /* Find retryRate in operationRateSet[] */
    for (i=0; i<rcCell->operationRateCount; i++)
    {
        if (retryRate == rcCell->operationRateSet[i])
        {
    for (i = 0; i < rcCell->operationRateCount; i++) {
	if (retryRate == rcCell->operationRateSet[i]) {
		if (i < rcCell->currentRateIndex)
            {
			return ((rcCell->currentRateIndex - i)+1)>>1;
            }
            else if (i == rcCell->currentRateIndex == 0)
            {
		else if (i == rcCell->currentRateIndex && i == 0)
			return 1;
            }
		else
            {
			return 0;
	}
    }
    }
    /* TODO : retry rate not in operation rate set */
    zm_msg1_tx(ZM_LV_0, "Not in operation rate set:", retryRate);
    return 1;