From 7c08334e41a22520bf0f90983f11d8d0763d9619 Mon Sep 17 00:00:00 2001 From: Viresh Kumar Date: Thu, 1 Dec 2016 16:12:14 +0530 Subject: [PATCH] UPSTREAM: devfreq: rk3399_dmc: Remove dangling rcu_read_unlock() This call never had the rcu_read_lock() counterpart. Remove the unlock part as well. Change-Id: Ifc5abfd7cea9a245b6edc0f50e362963ac045b7f Signed-off-by: Viresh Kumar Reviewed-by: Chanwoo Choi Signed-off-by: Rafael J. Wysocki Signed-off-by: Finley Xiao (cherry picked from commit d8323de3d4062e1b5a5aa7e9c0f935138405a582) --- drivers/devfreq/rk3399_dmc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/devfreq/rk3399_dmc.c b/drivers/devfreq/rk3399_dmc.c index fe75121c8209..1e25c3441155 100644 --- a/drivers/devfreq/rk3399_dmc.c +++ b/drivers/devfreq/rk3399_dmc.c @@ -445,7 +445,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; } -- 2.34.1