diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2015-10-15 02:28:36 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-16 22:56:23 -0700 |
commit | b62c535cd0485804ab889fd8f9ac789ede230dd2 (patch) | |
tree | ba9cd738a90ac9d72f75db7781f511c24c9dafc1 /drivers/staging/speakup/varhandlers.c | |
parent | b5186a9fd2ff333693034cd0d24590dd0bc34ea7 (diff) | |
download | linux-b62c535cd0485804ab889fd8f9ac789ede230dd2.tar.bz2 |
staging: speakup: varhandlers: 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/varhandlers.c')
-rw-r--r-- | drivers/staging/speakup/varhandlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/speakup/varhandlers.c b/drivers/staging/speakup/varhandlers.c index b2afec63a6dd..ab4fe8de415f 100644 --- a/drivers/staging/speakup/varhandlers.c +++ b/drivers/staging/speakup/varhandlers.c @@ -323,7 +323,7 @@ char *spk_strlwr(char *s) char *spk_s2uchar(char *start, char *dest) { - int val = 0; + int val; val = simple_strtoul(skip_spaces(start), &start, 10); if (*start == ',') |