return same error value from spk_set_key_info
authorPranay Kr. Srivastava <pranjas@gmail.com>
Tue, 21 Mar 2017 07:10:22 +0000 (12:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Mar 2017 13:16:52 +0000 (14:16 +0100)
commit4e9cc9a0a5b6c03f3ab652719b3add6562dde25e
tree70db2ec90046a5e3b3c2098eb33dd5ce162df7d7
parent2c14d2e426c3f91e94d3e29b22bb4abdfae10f9d
return same error value from spk_set_key_info

This patch makes spk_set_key_info return -EINVAL
in case of failure instead of returning 4 different
values for the type of error that occurred.

Print the offending values instead as debug message.

Signed-off-by: Pranay Kr. Srivastava <pranjas@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/main.c