git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'for-linus' of git://git.kernel.dk/linux-block
[pandora-kernel.git]
/
drivers
/
hwmon
/
ntc_thermistor.c
diff --git
a/drivers/hwmon/ntc_thermistor.c
b/drivers/hwmon/ntc_thermistor.c
index
d7926f4
..
eab1161
100644
(file)
--- a/
drivers/hwmon/ntc_thermistor.c
+++ b/
drivers/hwmon/ntc_thermistor.c
@@
-211,8
+211,7
@@
static int lookup_comp(struct ntc_data *data,
if (data->comp[mid].ohm <= ohm) {
*i_low = mid;
*i_high = mid - 1;
- }
- if (data->comp[mid].ohm > ohm) {
+ } else {
*i_low = mid + 1;
*i_high = mid;
}