remoteproc: k3-r5: Ensure ret is initialised
In k3_r5f_split_reset and k3_r5f_unprepare ret may not have been assigned to before the code reaches the return ret at the function exit. This issue was found by Smatch. Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
This commit is contained in:
committed by
Tom Rini
parent
f780ad4be9
commit
c9cd480b5c
@@ -441,7 +441,7 @@ proc_release:
|
||||
|
||||
static int k3_r5f_split_reset(struct k3_r5f_core *core)
|
||||
{
|
||||
int ret;
|
||||
int ret = 0;
|
||||
|
||||
dev_dbg(core->dev, "%s\n", __func__);
|
||||
|
||||
@@ -476,7 +476,7 @@ static int k3_r5f_unprepare(struct udevice *dev)
|
||||
{
|
||||
struct k3_r5f_core *core = dev_get_priv(dev);
|
||||
struct k3_r5f_cluster *cluster = core->cluster;
|
||||
int ret;
|
||||
int ret = 0;
|
||||
|
||||
dev_dbg(dev, "%s\n", __func__);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user