Skip to content

Commit 60bd22f

Browse files
Colin Ian Kingalexandrebelloni
authored andcommitted
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 <[email protected]> Reviewed-by: Martin Blumenstingl <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent 4239749 commit 60bd22f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rtc/rtc-meson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static u32 meson_rtc_get_data(struct meson_rtc *rtc)
131131

132132
static int meson_rtc_get_bus(struct meson_rtc *rtc)
133133
{
134-
int ret, retries = 3;
134+
int ret, retries;
135135
u32 val;
136136

137137
/* prepare bus for transfers, set all lines low */

0 commit comments

Comments
 (0)