diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2015-10-15 03:23:35 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-16 22:56:23 -0700 |
commit | b5186a9fd2ff333693034cd0d24590dd0bc34ea7 (patch) | |
tree | 5143e94e8342f2b197f0ded7f932b2df3ab92345 /drivers/staging/speakup | |
parent | 7ea8778ef33438a6509313cc1177a9a8ec44b214 (diff) | |
download | talos-op-linux-b5186a9fd2ff333693034cd0d24590dd0bc34ea7.tar.gz talos-op-linux-b5186a9fd2ff333693034cd0d24590dd0bc34ea7.zip |
staging: speakup: speakup_audptr: Remove useless intialisation
Remove intialisation of a variable that is immediately reassigned.
The semantic patch used to find this is:
// <smpl>
@@
type T;
identifier x;
constant C;
expression e;
@@
T x
- = C
;
x = e;
// </smpl>
Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/speakup')
-rw-r--r-- | drivers/staging/speakup/speakup_audptr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/speakup/speakup_audptr.c b/drivers/staging/speakup/speakup_audptr.c index ea89e36ecd0d..a9a687232955 100644 --- a/drivers/staging/speakup/speakup_audptr.c +++ b/drivers/staging/speakup/speakup_audptr.c @@ -162,7 +162,7 @@ static void synth_version(struct spk_synth *synth) static int synth_probe(struct spk_synth *synth) { - int failed = 0; + int failed; failed = spk_serial_synth_probe(synth); if (failed == 0) |