cpuquiet: Fix warning about unused variable
authorSami Liedes <sliedes@nvidia.com>
Tue, 5 Feb 2013 13:22:03 +0000 (15:22 +0200)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 18 May 2015 08:07:10 +0000 (16:07 +0800)
drivers/cpuquiet/governors/runnable_threads.c: In function 'runnables_work_func':
drivers/cpuquiet/governors/runnable_threads.c:184:14: warning: unused variable 'state' [-Wunused-variable]

Change-Id: I26c2288876043cf3dd21e1b57317a1f5b2de5a9b
Signed-off-by: Sami Liedes <sliedes@nvidia.com>
Reviewed-on: http://git-master/r/197469
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
drivers/cpuquiet/governors/runnable_threads.c

index 6eba7a61a012562c17cec2a37e86e9adf3557769..22cab876d5089993ece560f8b337343df9bdf06e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012 NVIDIA CORPORATION.  All rights reserved.
+ * Copyright (c) 2012-2013 NVIDIA CORPORATION.  All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -181,7 +181,7 @@ static unsigned int get_lightest_loaded_cpu_n(void)
 static void runnables_work_func(struct work_struct *work)
 {
        unsigned int cpu = nr_cpu_ids;
-       int action, state;
+       int action;
 
        mutex_lock(&runnables_lock);
        if (runnables_state != RUNNING) {