Skip to content

Commit dfa40d3

Browse files
musicakctiwai
authored andcommitted
sound: oss: Remove useless initialisation
Remove useless initialisation of variable whose value is reinitialised later. The Coccinelle semantic patch used to make this change is as follows: @@ type T; identifier x; constant C; expression e; @@ T x - = C ; x = e; Signed-off-by: Amitoj Kaur Chawla <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent a5d48be commit dfa40d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/oss/ad1848.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ static void ad_write(ad1848_info * devc, int reg, int data)
254254

255255
static void wait_for_calibration(ad1848_info * devc)
256256
{
257-
int timeout = 0;
257+
int timeout;
258258

259259
/*
260260
* Wait until the auto calibration process has finished.

0 commit comments

Comments
 (0)