projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
502adf5
)
hwmon: (coretemp) Fix harmless build warning
author
Jean Delvare
<
[email protected]
>
Wed, 25 Aug 2010 13:42:08 +0000
(15:42 +0200)
committer
Jean Delvare
<
[email protected]
>
Wed, 25 Aug 2010 13:42:08 +0000
(15:42 +0200)
Fix the following build warning:
CC [M] drivers/hwmon/coretemp.o
drivers/hwmon/coretemp.c: In function "coretemp_init":
drivers/hwmon/coretemp.c:521: warning: unused variable "n"
drivers/hwmon/coretemp.c:521: warning: unused variable "p"
Introduced by commit
851b29cb3b196cb66452ec964ab5f66c9c9cd1ed
. When
you drop code, you also have to drop the variables this code was
using.
Signed-off-by: Jean Delvare <
[email protected]
>
Cc: Chen Gong <
[email protected]
>
Cc: Rudolf Marek <
[email protected]
>
Cc: Huaxu Wan <
[email protected]
>
drivers/hwmon/coretemp.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/coretemp.c
b/drivers/hwmon/coretemp.c
index c070c9714cbe2fa84646b41626655b4c51a7157e..de8111114f469ec21567a5781349bb0d7f7cbc98 100644
(file)
--- a/
drivers/hwmon/coretemp.c
+++ b/
drivers/hwmon/coretemp.c
@@
-518,7
+518,6
@@
static struct notifier_block coretemp_cpu_notifier __refdata = {
static int __init coretemp_init(void)
{
int i, err = -ENODEV;
- struct pdev_entry *p, *n;
/* quick check if we run Intel */
if (cpu_data(0).x86_vendor != X86_VENDOR_INTEL)