From: Andy Shevchenko Date: Thu, 28 Mar 2013 09:02:44 +0000 (+0200) Subject: staging: speakup: use native error codes X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~137^2~376 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a48f88b528fef7c4b6ad609111a8acfb5d65335;p=pandora-kernel.git 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 Acked-by: Samuel Thibault Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed