greybus: get rid of message status
authorAlex Elder <elder@linaro.org>
Wed, 19 Nov 2014 18:27:15 +0000 (12:27 -0600)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 19 Nov 2014 18:43:21 +0000 (10:43 -0800)
commit6014718d4db9d48a980d70c66a7617293db633e6
tree65c28252ec38ac895c7bce89822bd4223eb6d057
parentc41f1651c4962e56548a5b580e60f66a724357e7
greybus: get rid of message status

We (sort of) maintain the status of each message, but we shouldn't
need to.  Right now we're not using it consistently in any case.

If a message fails to send, the caller will know to destroy the
operation that contained it.

If a message has been sent (i.e., handed to the host device layer)
it'll have a non-null cookie pointer.

If a does complete in error, we can update the status of the
operation that contains it.  That isn't happening right now but
it will soon.

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