diff options
author | Dan Carpenter <[email protected]> | 2017-10-24 12:47:42 +0300 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2017-10-29 18:36:03 -0700 |
commit | 5813da157f7dbe03d268c8d0dd9425d0e3944910 (patch) | |
tree | f4b6901727e4c5bfcd6af64b9dd77e185667d00b /tools/perf/util/trace-event-scripting.c | |
parent | a3bdc5b5bd369fcab8306b80d2c740e332183d20 (diff) |
hwmon: (max6621) Inverted if condition in max6621_read()
We intended to test for failure here but accidentally tested for
success. It means that we don't set "*val" to true and it means that
if i2c_smbus_write_byte() does fail then we return success.
Fixes: e7895864b0d7 ("hwmon: (max6621) Add support for Maxim MAX6621 temperature sensor")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Vadim Pasternak <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions