hwmon: (pmbus/tps25990) Remove unnecessary call
PATCH 1/1 hwmon: (pmbus/tps25990) Remove unnecessary call
This commit addresses a structurally dead code issue detected by Coverity (CID 1602227). An integer is returned early in one of the switch cases causing the later statements to never be called. The return statement is removed following convention in the other switch cases.
Signed-off-by Dheeraj Reddy Jonnalagadda <[email protected]>
--- drivers/hwmon/pmbus/tps25990.c | 1 - 1 file changed, 1 deletion(-)
drivers/hwmon/pmbus/tps25990.c +0 -1
@@ -130,7 +130,6 @@ static int tps25990_read_word_data(struct i2c_client *client,break ;case PMBUS_VIRT_READ_IIN_MAX : -return TPS25990_READ_IIN_PEAK ; ret =pmbus_read_word_data (client, page, phase,TPS25990_READ_IIN_PEAK );break ;
Signature · 1 line
2.34.1
Guenter Roeck
maintainerHi,
Quoted 7 lines · Dheeraj Reddy Jonnalagadda
This commit addresses a structurally dead code issue detected by Coverity (CID 1602227). An integer is returned early in one of the switch cases causing the later statements to never be called. The return statement is removed following convention in the other switch cases.
Signed-off-by Dheeraj Reddy Jonnalagadda <[email protected]>
This has already been fixed.
Thanks,
Guenter
Quoted 16 lines
--- drivers/hwmon/pmbus/tps25990.c | 1 - 1 file changed, 1 deletion(-)drivers/hwmon/pmbus/tps25990.c +0
-1@@ -130,7 +130,6 @@ static int tps25990_read_word_data(struct i2c_client *client,break ;case PMBUS_VIRT_READ_IIN_MAX : -return TPS25990_READ_IIN_PEAK ; ret =pmbus_read_word_data (client, page, phase,TPS25990_READ_IIN_PEAK );break ;