From: Amitoj Kaur Chawla Date: Wed, 14 Oct 2015 20:58:36 +0000 (+0530) Subject: staging: speakup: varhandlers: Remove useless intialisation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b62c535cd0485804ab889fd8f9ac789ede230dd2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: speakup: varhandlers: Remove useless intialisation Remove intialisation of a variable that is immediately reassigned. The semantic patch used to find this is: // @@ type T; identifier x; constant C; expression e; @@ T x - = C ; x = e; // Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman --- 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 == ',')