sound: oss: Remove useless initialisation
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Tue, 12 Jul 2016 03:24:35 +0000 (08:54 +0530)
committerTakashi Iwai <tiwai@suse.de>
Tue, 12 Jul 2016 06:06:10 +0000 (08:06 +0200)
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 <amitoj1606@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/oss/ad1848.c

index 10c8de1f8d29366dabf95d558e13423d5dadd4c5..6368e5c7d0ba93328fd83893731f59a314d01be0 100644 (file)
@@ -254,7 +254,7 @@ static void ad_write(ad1848_info * devc, int reg, int data)
 
 static void wait_for_calibration(ad1848_info * devc)
 {
-       int timeout = 0;
+       int timeout;
 
        /*
         * Wait until the auto calibration process has finished.