diff options
author | Javier Carrasco <javier.carrasco@wolfvision.net> | 2023-03-15 09:20:21 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2023-03-17 23:23:54 +0100 |
commit | dc87fad6448fc574456516404469c0c2c48d642e (patch) | |
tree | 81f06b62f14c08ae23ca1a7974b0aea423a2b018 /drivers/rtc | |
parent | rtc: pcf8523: fix coding-style issues (diff) | |
download | linux-dc87fad6448fc574456516404469c0c2c48d642e.tar.xz linux-dc87fad6448fc574456516404469c0c2c48d642e.zip |
rtc: pcf8523: remove unnecessary OR operation
The value variable is initialized to 0 and it is not used to set any
other bits rather than the one that defines the capacitor value. Setting
this capacitor value is the only purpose of the function where the
variable is defined and therefore the OR operation does not apply as a
way to foresee functionality extensions either.
Signed-off-by: Javier Carrasco <javier.carrasco@wolfvision.net>
Link: https://lore.kernel.org/r/20230315082021.2104452-3-javier.carrasco@wolfvision.net
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-pcf8523.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-pcf8523.c b/drivers/rtc/rtc-pcf8523.c index ccb5aa690433..e7115ebef707 100644 --- a/drivers/rtc/rtc-pcf8523.c +++ b/drivers/rtc/rtc-pcf8523.c @@ -65,7 +65,7 @@ static int pcf8523_load_capacitance(struct pcf8523 *pcf8523, struct device_node load); fallthrough; case 12500: - value |= PCF8523_CONTROL1_CAP_SEL; + value = PCF8523_CONTROL1_CAP_SEL; break; case 7000: break; |