drivers/thermal/thermal_sys.c: fix build warning
authorFabio Estevam <festevam@gmail.com>
Wed, 21 Mar 2012 19:55:00 +0000 (12:55 -0700)
committerLen Brown <len.brown@intel.com>
Thu, 22 Mar 2012 05:01:27 +0000 (01:01 -0400)
commitb11de07ce561574b6e03c8192b28bad540da8f79
tree72e5c0ce57df3d94b62f72a785bce1b37cf8a47c
parentc16fa4f2ad19908a47c63d8fa436a1178438c7e7
drivers/thermal/thermal_sys.c: fix build warning

With CONFIG_NET=n:

drivers/thermal/thermal_sys.c:63: warning: 'thermal_event_seqnum' defined but not used

Move 'thermal_event_seqnum' definition inside the '#ifdef CONFIG_NET'

[akpm@linux-foundation.org: make thermal_event_seqnum local to generate_netlink_event()]
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Durgadoss R <durgadoss.r@intel.com>
Cc: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/thermal/thermal_sys.c