greybus: set result in gb_operation_response_send()
authorAlex Elder <elder@linaro.org>
Tue, 2 Dec 2014 14:30:36 +0000 (08:30 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 2 Dec 2014 22:41:58 +0000 (14:41 -0800)
commitd2d2c0fe70ff09510f56bd341e2ab415b7b5e947
tree81ab71d5d77c42609beb47123e31c955a74e89df
parent0cffcac3051fa1447d8a452ab5e0029bbe100777
greybus: set result in gb_operation_response_send()

Change gb_operation_response_send() so it takes an errno to assign
as an operation's result.  This emphasizes that setting the result
should be the last thing done to an incoming operation before
sending its response.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/operation.c
drivers/staging/greybus/operation.h