On a failure in start_streaming(), the error code would not propagate to
the calling function on all conditions. This would cause the userland
caller to not know of the failure.
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
unicam_disable(dev);
clk_disable_unprepare(dev->clock);
err_vpu_clock:
- ret = clk_set_min_rate(dev->vpu_clock, 0);
- if (ret)
+ if (clk_set_min_rate(dev->vpu_clock, 0))
unicam_err(dev, "failed to reset the VPU clock\n");
clk_disable_unprepare(dev->vpu_clock);
err_pm_put: