Skip to content

Commit a1cba0e

Browse files
Muhammad Usama AnjumJonathan Cameron
authored andcommitted
iio: frequency: admv1013: remove the always true condition
unsigned int variable is always greater than or equal to zero. Make the if condition simple. Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com> Fixes: da35a7b ("iio: frequency: admv1013: add support for ADMV1013") Link: https://lore.kernel.org/r/YdS3gJYtECMaDDjA@debian-BULLSEYE-live-builder-AMD64 Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent ccbed9d commit a1cba0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/iio/frequency/admv1013.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ static int admv1013_update_mixer_vgate(struct admv1013_state *st)
348348

349349
vcm = regulator_get_voltage(st->reg);
350350

351-
if (vcm >= 0 && vcm < 1800000)
351+
if (vcm < 1800000)
352352
mixer_vgate = (2389 * vcm / 1000000 + 8100) / 100;
353353
else if (vcm > 1800000 && vcm < 2600000)
354354
mixer_vgate = (2375 * vcm / 1000000 + 125) / 100;

0 commit comments

Comments
 (0)