Commit f71869b
committed
iio: adc: ad4630: Use right shift operator for scale calculation
The ADC input range value is never negative and so there is no need to use
shift_right() to calculate the scale. Make direct use of right shift
operator for scale calculation.
This fixes 'comparison of unsigned expression in ‘< 0’ is always false'
build warn.
Signed-off-by: Marcelo Schmitt <[email protected]>1 parent 69dcfc6 commit f71869b
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
532 | 531 | | |
533 | 532 | | |
534 | 533 | | |
| |||
537 | 536 | | |
538 | 537 | | |
539 | 538 | | |
540 | | - | |
541 | | - | |
| 539 | + | |
542 | 540 | | |
543 | 541 | | |
544 | 542 | | |
| |||
0 commit comments