Commit 60bd22fc authored by Colin Ian King's avatar Colin Ian King Committed by Alexandre Belloni

rtc: meson: remove redundant assignment to variable retries

The variable retries is being initialized with a value that is never
read and it is being updated later with a new value in a for-loop.
The initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20191122225210.109172-1-colin.king@canonical.comSigned-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 42397492
......@@ -131,7 +131,7 @@ static u32 meson_rtc_get_data(struct meson_rtc *rtc)
static int meson_rtc_get_bus(struct meson_rtc *rtc)
{
int ret, retries = 3;
int ret, retries;
u32 val;
/* prepare bus for transfers, set all lines low */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment