cpuidle: Clean up cpuidle_enable_device() error handling a bit
authorGaurav Jindal <gauravjindal1104@gmail.com>
Fri, 1 Sep 2017 15:07:26 +0000 (20:37 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 8 Nov 2017 22:09:52 +0000 (23:09 +0100)
commite7b06a09e7d87ec0d6d8b17eec50fbb93667eee1
tree4c832a76f6d395b434f73409fd1c6ac4751b3680
parentc523c68da2117a3f9f777110839b1cf7ed7221be
cpuidle: Clean up cpuidle_enable_device() error handling a bit

Do not fetch per CPU drv if cpuidle_curr_governor is NULL
to avoid useless per CPU processing.

Signed-off-by: Gaurav Jindal <gauravjindal1104@gmail.com>
[ rjw: Subject & changelog ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/cpuidle.c