[PATCH V2 08/16] cpuidle: merge two if() statements for checking error cases