greybus: core: return error code when creating endo

Return a pointer-coded error from gb_endo_create() rather than just
a null pointer in the event an error occurs.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Alex Elder 2015-05-22 09:52:44 -05:00 • committed by Greg Kroah-Hartman
commit 6b7d5a1f47
2 changed files with 12 additions and 6 deletions