drivers/rtc/rtc-pcf8583.c: move assignment outside if condition
Fixes the following checkpatch error: ERROR: do not use assignment in if condition Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
369015fbd4
commit
d1bda80afd
@ -188,7 +188,8 @@ static int pcf8583_rtc_read_time(struct device *dev, struct rtc_time *tm)
|
||||
dev_warn(dev, "resetting control %02x -> %02x\n",
|
||||
ctrl, new_ctrl);
|
||||
|
||||
if ((err = pcf8583_set_ctrl(client, &new_ctrl)) < 0)
|
||||
err = pcf8583_set_ctrl(client, &new_ctrl);
|
||||
if (err < 0)
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user