aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/speakup/speakup_audptr.c
diff options
context:
space:
mode:
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>2015-10-15 03:23:35 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-16 22:56:23 -0700
commitb5186a9fd2ff333693034cd0d24590dd0bc34ea7 (patch)
tree5143e94e8342f2b197f0ded7f932b2df3ab92345 /drivers/staging/speakup/speakup_audptr.c
parentstaging: speakup: Fix multi-line comment style (diff)
downloadlinux-dev-b5186a9fd2ff333693034cd0d24590dd0bc34ea7.tar.xz
linux-dev-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/speakup_audptr.c')
-rw-r--r--drivers/staging/speakup/speakup_audptr.c2
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)