summaryrefslogtreecommitdiff
path: root/sound/oss
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2016-07-12 06:24:35 +0300
committerTakashi Iwai <tiwai@suse.de>2016-07-12 09:06:10 +0300
commitdfa40d3e3686591f7c30990c67f11b5d30f4527f (patch)
treec94e6befbb0fa3321d3f5092e9d48b5911e7703b /sound/oss
parenta5d48be457273e4faf34a2033c63f8890f3f9c6c (diff)
downloadlinux-dfa40d3e3686591f7c30990c67f11b5d30f4527f.tar.xz
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 <amitoj1606@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/oss')
-rw-r--r--sound/oss/ad1848.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/oss/ad1848.c b/sound/oss/ad1848.c
index 10c8de1f8d29..6368e5c7d0ba 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.