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 5063ac1a59391fe2bb44753f95e12d6032a18c05..971ee63584569a722e8cd91d42801f79d5b69c9e 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;
        }