Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 632de8f5 authored by Sudeep Holla's avatar Sudeep Holla
Browse files

firmware: arm_scmi: simplify exit path by returning on error



Yet another nasty indentation left out during code restructuring. It's
must simpler to return on error instead of having unnecessary indentation.

Suggested-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
parent ec42ac6d
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -687,11 +687,12 @@ static int scmi_remove(struct platform_device *pdev)
		list_del(&info->node);
	mutex_unlock(&scmi_list_mutex);

	if (!ret) {
	if (ret)
		return ret;

	/* Safe to free channels since no more users */
	ret = idr_for_each(idr, scmi_mbox_free_channel, idr);
	idr_destroy(&info->tx_idr);
	}

	return ret;
}