commit | 6a48f88b528fef7c4b6ad609111a8acfb5d65335 | [log] [tgz] |
---|---|---|
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | Thu Mar 28 11:02:44 2013 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Mar 29 08:41:15 2013 -0700 |
tree | 58f4551121772dc7fcea13e96428ff4837bcce4d | |
parent | 1627ab92b2e6307525f43f775aaeac54407981ef [diff] |
staging: speakup: use native error codes The mapping as follows: E_RANGE -> ERANGE E_UNDEF -> ENODATA E_TOOLONG -> E2BIG SET_DEFAULT -> ERESTART As a side effect it fixes a bug in spk_var_store() where return code was mistakenly compared to negative value instead of positive. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>