lkml.org 
[lkml]   [2011]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][TRIVIAL] [thermal] fix unused variable warning
[thermal] fix unused variable warning 

thermal_event_seqnum is only used if CONFIG_NET is defined.

Signed-off-by: Daniel Walter <d.walter@0x90.at>
---
drivers/thermal/thermal_sys.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/drivers/thermal/thermal_sys.c b/drivers/thermal/thermal_sys.c
index 708f8e9..def02da 100644
--- a/drivers/thermal/thermal_sys.c
+++ b/drivers/thermal/thermal_sys.c
@@ -60,7 +60,9 @@ static LIST_HEAD(thermal_tz_list);
static LIST_HEAD(thermal_cdev_list);
static DEFINE_MUTEX(thermal_list_lock);

+#ifdef CONFIG_NET
static unsigned int thermal_event_seqnum;
+#endif /* CONFIG_NET */

static int get_idr(struct idr *idr, struct mutex *lock, int *id)
{

\
 
 \ /
  Last update: 2011-10-10 12:15    [W:0.036 / U:0.836 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site