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>
static int k3_r5f_split_reset(struct k3_r5f_core *core)
{
- int ret;
+ int ret = 0;
dev_dbg(core->dev, "%s\n", __func__);
{
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__);