From: Colin Ian King Date: Fri, 22 Nov 2019 22:52:10 +0000 (+0000) Subject: rtc: meson: remove redundant assignment to variable retries X-Git-Tag: v5.5-rc1~56^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=60bd22fc90630e19b616a3f329ae3958f0878ac6;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Martin Blumenstingl Link: https://lore.kernel.org/r/20191122225210.109172-1-colin.king@canonical.com Signed-off-by: Alexandre Belloni --- diff --git a/drivers/rtc/rtc-meson.c b/drivers/rtc/rtc-meson.c index 9bd8478db34bd..47ebcf834cc21 100644 --- a/drivers/rtc/rtc-meson.c +++ b/drivers/rtc/rtc-meson.c @@ -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 */