Skip to content
Commit 27975075 authored by Mike J. Chen's avatar Mike J. Chen Committed by Benjamin Cabé
Browse files

drivers: mbox_nxp_imx_mu: return negative errno value on error



Change nxp_imx_mu_send() to return a negative errno value
on error.

The fsl_mu function MU_TriggerInterrupts() returns either
kStatus_Success or kStatus_Fail, which have the value 0
or 1, respectively. kStatus_Fail should not be returned
to the upper levels, which expect negative values for
errors, so add a check for the return value of
MU_TriggerInterrupts() and return an errno value on error.

Signed-off-by: default avatarMike J. Chen <mjchen@google.com>
parent b28e1e12
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment