devfreq: rk3399_dmc: Remove dangling rcu_read_unlock()
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 1 Dec 2016 10:42:14 +0000 (16:12 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 8 Dec 2016 00:46:06 +0000 (01:46 +0100)
This call never had the rcu_read_lock() counterpart. Remove the unlock
part as well.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/devfreq/rk3399_dmc.c

index 5063ac1..971ee63 100644 (file)
@@ -414,7 +414,6 @@ static int rk3399_dmcfreq_probe(struct platform_device *pdev)
         */
        if (dev_pm_opp_of_add_table(dev)) {
                dev_err(dev, "Invalid operating-points in device tree.\n");
-               rcu_read_unlock();
                return -EINVAL;
        }