OSDN Git Service

hwmon: (nct6775) Set weight source to zero correctly
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 5 Sep 2018 07:46:27 +0000 (10:46 +0300)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 5 Sep 2018 21:47:50 +0000 (14:47 -0700)
commite3f3d7ab00cd459d0f7a839758a4542f4d4b8ac8
treeb6bc22f3467df9d9ca24e84a59cc2df934b898fe
parent57361846b52bc686112da6ca5368d11210796804
hwmon: (nct6775) Set weight source to zero correctly

This is dead code because j can never be 1 at this point.  We had
intended to just test if the bit was clear.

Fixes: bbd8decd4123 ("hwmon: (nct6775) Add support for weighted fan control")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/nct6775.c