Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1372819 > unrolled thread

[PATCH 03/13] intel_idle: Fix a helper function's return value.

Started byLen Brown <lenb@kernel.org>
First post2016-04-06 23:10 +0200
Last post2016-04-06 23:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 03/13] intel_idle: Fix a helper function's return value. Len Brown <lenb@kernel.org> - 2016-04-06 23:10 +0200

#1372819 — [PATCH 03/13] intel_idle: Fix a helper function's return value.

FromLen Brown <lenb@kernel.org>
Date2016-04-06 23:10 +0200
Subject[PATCH 03/13] intel_idle: Fix a helper function's return value.
Message-ID<rl2S6-1tt-13@gated-at.bofh.it>
From: Richard Cochran <rcochran@linutronix.de>

The function, intel_idle_cpuidle_driver_init, delivers no error codes
at all.  This patch changes the function to return 'void' instead of
returning zero.

Signed-off-by: Richard Cochran <rcochran@linutronix.de>
Signed-off-by: Len Brown <len.brown@intel.com>
---
 drivers/idle/intel_idle.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c
index 6638a80..d2e7baf 100644
--- a/drivers/idle/intel_idle.c
+++ b/drivers/idle/intel_idle.c
@@ -1248,7 +1248,7 @@ static void intel_idle_state_table_update(void)
  * intel_idle_cpuidle_driver_init()
  * allocate, initialize cpuidle_states
  */
-static int __init intel_idle_cpuidle_driver_init(void)
+static void __init intel_idle_cpuidle_driver_init(void)
 {
 	int cstate;
 	struct cpuidle_driver *drv = &intel_idle_driver;
@@ -1310,8 +1310,6 @@ static int __init intel_idle_cpuidle_driver_init(void)
 
 	if (icpu->disable_promotion_to_c1e)	/* each-cpu is redundant */
 		on_each_cpu(c1e_promotion_disable, NULL, 1);
-
-	return 0;
 }
 
 
-- 
2.8.0.rc4.16.g56331f8

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web