cpuidle: Avoid assignment in if () argument
authorGaurav Jindal <gauravjindal1104@gmail.com>
Fri, 1 Sep 2017 19:26:38 +0000 (00:56 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 8 Nov 2017 22:15:30 +0000 (23:15 +0100)
commit3fc74bd8a723c91a5b4627079c511fcaf3c75017
tree40a72ec4155953cb36261df89baae05c4487abcb
parente7b06a09e7d87ec0d6d8b17eec50fbb93667eee1
cpuidle: Avoid assignment in if () argument

Clean up cpuidle_enable_device() to avoid doing an assignment
in an expression evaluated as an argument of if (), which also
makes the code in question more readable.

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