aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorJean Delvare <[email protected]>2011-11-04 12:00:46 +0100
committerJean Delvare <[email protected]>2011-11-04 12:00:46 +0100
commit8dc089d68b125179b1c97e75d29623472d99c68b (patch)
treeaf66b5e66831edf483b56899873ba90283818a46 /tools/perf/scripts/python/sched-migration.py
parentda8ebe4e09ee5661f125a8401ade58baf226aa57 (diff)
hwmon: (lm90) Fix warnings
With some configuration option combinations, we get the following warnings: drivers/hwmon/lm90.c: In function 'lm90_detect': drivers/hwmon/lm90.c:1114: warning: 'chip_id' may be used uninitialized in this function drivers/hwmon/lm90.c:1114: warning: 'reg_config1' may be used uninitialized in this function drivers/hwmon/lm90.c:1114: warning: 'reg_convrate' may be used uninitialized in this function drivers/hwmon/lm90.c:1187: warning: 'reg_emerg2' may be used uninitialized in this function drivers/hwmon/lm90.c:1187: warning: 'reg_status2' may be used uninitialized in this function We can solve these easily by reading the register values first and checking for errors later. These errors should be very rare, even in the case of failed detection, so this change has no impact on performance. And this makes checkpatch.pl happier. Reported-by: Guenter Roeck <[email protected]> Signed-off-by: Jean Delvare <[email protected]> Acked-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions