Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348348
b: refs/heads/master
c: ac34d7c
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Lezcano authored and Rafael J. Wysocki committed Jan 3, 2013
1 parent 6af9ba2 commit b8bb5f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 17915d582f9fe74efbd1c755f3ea5a5c2d9b3156
refs/heads/master: ac34d7c8c87c247db0270285950753da045acaad
8 changes: 1 addition & 7 deletions trunk/drivers/cpuidle/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,16 +235,10 @@ EXPORT_SYMBOL_GPL(cpuidle_get_driver);
*/
struct cpuidle_driver *cpuidle_get_cpu_driver(struct cpuidle_device *dev)
{
struct cpuidle_driver *drv;

if (!dev)
return NULL;

spin_lock(&cpuidle_driver_lock);
drv = __cpuidle_get_cpu_driver(dev->cpu);
spin_unlock(&cpuidle_driver_lock);

return drv;
return __cpuidle_get_cpu_driver(dev->cpu);
}
EXPORT_SYMBOL_GPL(cpuidle_get_cpu_driver);

Expand Down

0 comments on commit b8bb5f3

Please sign in to comment.