kernel_optimize_test/drivers/hwmon
Julia Lawall df149d02ea hwmon: (k8temp) Adjust confusing if indentation
Move the if(err) statement after the if into the if branch indicated by its
indentation.  The preceding if(err) test implies that err cannot be nonzero
unless the if branch is taken.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r disable braces5@
position p1,p2;
statement S1,S2;
@@

(
if (...) { ... }
|
if (...) S1@p1 S2@p2
)

@script:python@
p1 << r.p1;
p2 << r.p2;
@@

if (p1[0].column == p2[0].column):
 cocci.print_main("branch",p4)
 cocci.print_secs("after",p5)
// </smpl>  

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
2010-08-14 21:08:47 +02:00
..
ams
abituguru3.c
abituguru.c
ad7414.c
ad7418.c
adcxx.c
adm1021.c
adm1025.c
adm1026.c
adm1029.c
adm1031.c
adm9240.c
ads7828.c
ads7871.c
adt7411.c
adt7462.c
adt7470.c
adt7475.c
amc6821.c
applesmc.c
asb100.c
asc7621.c
asus_atk0110.c
atxp1.c
coretemp.c fix "hwmon: coretemp: update hotplug condition check" 2010-08-11 08:58:59 -07:00
dme1737.c
ds1621.c
emc1403.c
f71805f.c
f71882fg.c hwmon: f71882fg: add support for the Fintek F71808E 2010-08-09 20:45:10 -07:00
f75375s.c
fschmd.c
g760a.c
gl518sm.c
gl520sm.c
hdaps.c drivers/hwmon/hdaps.c: add Lenovo Thinkpad T400 to the whitelist 2010-08-09 20:45:10 -07:00
hp_accel.c
hwmon-vid.c
hwmon.c
i5k_amb.c
ibmaem.c
ibmpex.c
it87.c
jc42.c hwmon: add support for JEDEC JC 42.4 compliant temperature sensors 2010-08-09 20:45:10 -07:00
jz4740-hwmon.c
k8temp.c hwmon: (k8temp) Adjust confusing if indentation 2010-08-14 21:08:47 +02:00
k10temp.c
Kconfig hwmon: f71882fg: add support for the Fintek F71808E 2010-08-09 20:45:10 -07:00
lis3lv02d_i2c.c
lis3lv02d_spi.c
lis3lv02d.c
lis3lv02d.h
lm63.c
lm70.c
lm73.c
lm75.c
lm75.h
lm77.c
lm78.c
lm80.c
lm83.c
lm85.c
lm87.c
lm90.c
lm92.c
lm93.c
lm95241.c
ltc4215.c
ltc4245.c
Makefile hwmon: add support for JEDEC JC 42.4 compliant temperature sensors 2010-08-09 20:45:10 -07:00
max1111.c
max1619.c
max6650.c
mc13783-adc.c hwmon: Don't access struct mc13783 directly from mc13783-adc 2010-08-12 11:28:03 +02:00
pc87360.c
pc87427.c
pcf8591.c
pkgtemp.c
s3c-hwmon.c
sht15.c
sis5595.c
smm665.c hwmon: driver for SMM665 Six-Channel Active DC Output Controller/Monitor 2010-08-09 20:45:10 -07:00
smsc47b397.c
smsc47m1.c
smsc47m192.c
thmc50.c
tmp102.c
tmp401.c
tmp421.c
ultra45_env.c
via686a.c
via-cputemp.c
vt1211.c
vt8231.c
w83l785ts.c
w83l786ng.c
w83627ehf.c
w83627hf.c
w83781d.c
w83791d.c
w83792d.c
w83793.c
wm831x-hwmon.c
wm8350-hwmon.c