Commit 42228d9e authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman

staging: speakup: remove redundant initialization of pointer p_key

Pointer p_key is being initialized with a value that is never read,
it is assigned a new value later on. The initialization is redundant
and can be removed.
Reviewed-by: default avatarSamuel Thibault <samuel.thibault@ens-lyon.org>
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Addresses-Coverity: ("Unused value")
Link: https://lore.kernel.org/r/20200223153954.420731-1-colin.king@canonical.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6d957838
...@@ -49,7 +49,7 @@ static int cur_item, nstates; ...@@ -49,7 +49,7 @@ static int cur_item, nstates;
static void build_key_data(void) static void build_key_data(void)
{ {
u_char *kp, counters[MAXFUNCS], ch, ch1; u_char *kp, counters[MAXFUNCS], ch, ch1;
u_short *p_key = key_data, key; u_short *p_key, key;
int i, offset = 1; int i, offset = 1;
nstates = (int)(state_tbl[-1]); nstates = (int)(state_tbl[-1]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment