cpuidle: merge two if() statements for checking error cases