From: Viresh Kumar Date: Thu, 1 Dec 2016 10:42:14 +0000 (+0530) Subject: devfreq: rk3399_dmc: Remove dangling rcu_read_unlock() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d8323de3d4062e1b5a5aa7e9c0f935138405a582;p=openwrt%2Fstaging%2Fblogic.git devfreq: rk3399_dmc: Remove dangling rcu_read_unlock() This call never had the rcu_read_lock() counterpart. Remove the unlock part as well. Signed-off-by: Viresh Kumar Reviewed-by: Chanwoo Choi Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/devfreq/rk3399_dmc.c b/drivers/devfreq/rk3399_dmc.c index 5063ac1a5939..971ee6358456 100644 --- a/drivers/devfreq/rk3399_dmc.c +++ b/drivers/devfreq/rk3399_dmc.c @@ -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; }