remoteproc: k3-r5: Fix an error message
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 6 May 2021 20:46:01 +0000 (22:46 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 28 May 2021 03:36:55 +0000 (22:36 -0500)
commit34c4da6d5dfba48f49f891ebd75bb55999f0c538
treed3f42570b7479d666e539ab0def57a077c42fd9b
parent3e25e407a1c93b53a87a7743ea0cd4703d3985b7
remoteproc: k3-r5: Fix an error message

'ret' is known to be 0 here.
Reorder the code so that the expected error code is printed.

Acked-by: Suman Anna <s-anna@ti.com>
Fixes: 6dedbd1d5443 ("remoteproc: k3-r5: Add a remoteproc driver for R5F subsystem")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/d6e29d903b48957bf59c67229d54b0fc215e31ae.1620333870.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/ti_k3_r5_remoteproc.c