Skip to content

Commit

Permalink
sound: oss: Remove useless initialisation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Amitoj Kaur Chawla authored and Takashi Iwai committed Jul 12, 2016
1 parent a5d48be commit dfa40d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/oss/ad1848.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dfa40d3

Please sign in to comment.