rate_tx and rate_rx are always greater than or equal to 0, so remove the
no effect comparison. Reported by Coverity.
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
(cherry picked from commit
d5957250784a27cf6f6f421d8a6e0ba45b4bbc18)
fm_rx = CS42XX8_FM_AUTO;
fm_tx = CS42XX8_FM_AUTO;
} else {
- if (rate_tx >= 0 && rate_tx < 50000)
+ if (rate_tx < 50000)
fm_tx = CS42XX8_FM_SINGLE;
else if (rate_tx > 50000 && rate_tx < 100000)
fm_tx = CS42XX8_FM_DOUBLE;
return -EINVAL;
}
- if (rate_rx >= 0 && rate_rx < 50000)
+ if (rate_rx < 50000)
fm_rx = CS42XX8_FM_SINGLE;
else if (rate_rx > 50000 && rate_rx < 100000)
fm_rx = CS42XX8_FM_DOUBLE;