rtc: pcf8523: remove unnecessary OR operation
authorJavier Carrasco <javier.carrasco@wolfvision.net>
Wed, 15 Mar 2023 08:20:21 +0000 (09:20 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 17 Mar 2023 22:23:54 +0000 (23:23 +0100)
commitdc87fad6448fc574456516404469c0c2c48d642e
tree81f06b62f14c08ae23ca1a7974b0aea423a2b018
parentb48cc753c017d1f5c6e317538205d40e70d04f3c
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>
drivers/rtc/rtc-pcf8523.c