commit | 93cf5f43421513ee6c07da68903221003a490f11 | [log] [tgz] |
---|---|---|
author | Tobin C. Harding <me@tobin.cc> | Mon Mar 13 12:37:32 2017 +1100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Mar 14 06:27:31 2017 +0800 |
tree | 66eee3e62a4c00def4297906b3c79684d4465976 | |
parent | cb52fce16027d79a97d0870a1110d4a4493fa0a8 [diff] |
staging: dgnc: return error code directly In various functions a return code variable is defined at the top of function, for example; rc = -ENODEV; and then the variable is returned. This makes it harder to read since it separates the error code from the return site. Return the error code directly instead of using a variable. Signed-off-by: Tobin C. Harding <me@tobin.cc> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>