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: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20191122225210.109172-1-colin.king@canonical.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
Colin Ian King 2019-11-22 22:52:10 +00:00 коммит произвёл Alexandre Belloni
Родитель 42397492fb
Коммит 60bd22fc90
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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 */