mailbox: handle empty message in tx_tick
authorSudeep Holla <sudeep.holla@arm.com>
Tue, 21 Mar 2017 11:30:16 +0000 (11:30 +0000)
committerJassi Brar <jaswinder.singh@linaro.org>
Thu, 27 Apr 2017 10:50:04 +0000 (16:20 +0530)
commitcb710ab1d8a23f68ff8f45aedf3e552bb90e70de
tree59a9d521b0b01091fa77aa994f6c200a693250e9
parentcc6eeaa3029a6dbcb4ad41b1f92876483bd88965
mailbox: handle empty message in tx_tick

We already check if the message is empty before calling the client
tx_done callback. Calling completion on a wait event is also invalid
if the message is empty.

This patch moves the existing empty message check earlier.

Fixes: 2b6d83e2b8b7 ("mailbox: Introduce framework for mailbox")
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mailbox.c