From: Amitoj Kaur Chawla Date: Tue, 12 Jul 2016 03:24:35 +0000 (+0530) Subject: sound: oss: Remove useless initialisation X-Git-Tag: v4.14-rc1~2705^2~8^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dfa40d3e3686591f7c30990c67f11b5d30f4527f;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Takashi Iwai --- diff --git a/sound/oss/ad1848.c b/sound/oss/ad1848.c index 10c8de1..6368e5c 100644 --- a/sound/oss/ad1848.c +++ b/sound/oss/ad1848.c @@ -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.