diff options
author | Bartosz Golaszewski | 2020-09-14 17:45:55 +0200 |
---|---|---|
committer | Alexandre Belloni | 2020-09-15 10:50:37 +0200 |
commit | b3ff7fd68d925de2159a5312f28dcd178d0d3715 (patch) | |
tree | 3b6014d93717e21b3011fa46dee65525e1260847 /drivers/rtc | |
parent | f702699c67d315e4a232c64801b2de9af87fd9f4 (diff) |
rtc: rx8010: drop unnecessary initialization
The 'err' local variable in rx8010_init_client() doesn't need to be
initialized.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200914154601.32245-9-brgl@bgdev.pl
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-rx8010.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-rx8010.c b/drivers/rtc/rtc-rx8010.c index 2c894e7aab6d..64a9964eb5e0 100644 --- a/drivers/rtc/rtc-rx8010.c +++ b/drivers/rtc/rtc-rx8010.c @@ -194,7 +194,7 @@ static int rx8010_init_client(struct i2c_client *client) { struct rx8010_data *rx8010 = i2c_get_clientdata(client); u8 ctrl[2]; - int need_clear = 0, err = 0; + int need_clear = 0, err; /* Initialize reserved registers as specified in datasheet */ err = i2c_smbus_write_byte_data(client, RX8010_RESV17, 0xD8); |