Re: [PATCH 1/2] hwmon: (nct6775) Set weight source to zero correctly

2018-09-05 Thread Guenter Roeck
On Wed, Sep 05, 2018 at 10:46:27AM +0300, Dan Carpenter wrote: > 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

[PATCH 1/2] hwmon: (nct6775) Set weight source to zero correctly

2018-09-05 Thread Dan Carpenter
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 diff --git a/drivers/hwmon/nct6775.c b/drivers/hwmon/nct6775.c index