mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-28 12:40:42 +00:00
-Wall unused variables cleanups
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1802 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
855f9754b1
commit
264e2dce9c
7 files changed
+8
-15
No files matched your search
@@ -787,7 +787,7 @@ void sis5595_fan_div(struct i2c_client *client, int operation,
|
||||
|
||||
static int __init sm_sis5595_init(void)
|
||||
{
|
||||
int res, addr;
|
||||
int addr;
|
||||
|
||||
printk("sis5595.o version %s (%s)\n", LM_VERSION, LM_DATE);
|
||||
|
||||
|
||||
@@ -461,8 +461,6 @@ void smbusarp_contents(struct i2c_client *client, int operation,
|
||||
|
||||
static int __init sm_smbusarp_init(void)
|
||||
{
|
||||
int res;
|
||||
|
||||
printk("smbus-arp.o version %s (%s)\n", LM_VERSION, LM_DATE);
|
||||
/* magic force invocation */
|
||||
force_arp[0] = -1;
|
||||
|
||||
@@ -481,7 +481,7 @@ void smsc47m1_pwm(struct i2c_client *client, int operation, int ctl_name,
|
||||
|
||||
static int __init sm_smsc47m1_init(void)
|
||||
{
|
||||
int res, addr;
|
||||
int addr;
|
||||
|
||||
printk("smsc47m1.o version %s (%s)\n", LM_VERSION, LM_DATE);
|
||||
|
||||
|
||||
@@ -487,8 +487,6 @@ void thmc50_analog_out(struct i2c_client *client, int operation,
|
||||
|
||||
static int __init sm_thmc50_init(void)
|
||||
{
|
||||
int res;
|
||||
|
||||
printk("thmc50.o version %s (%s)\n", LM_VERSION, LM_DATE);
|
||||
|
||||
return i2c_add_driver(&thmc50_driver);
|
||||
|
||||
@@ -796,7 +796,7 @@ void vt1211_uch(struct i2c_client *client, int operation, int ctl_name,
|
||||
|
||||
static int __init sm_vt1211_init(void)
|
||||
{
|
||||
int res, addr;
|
||||
int addr;
|
||||
|
||||
printk("vt1211.o version %s (%s)\n", LM_VERSION, LM_DATE);
|
||||
|
||||
|
||||
@@ -768,7 +768,7 @@ void vt8231_uch(struct i2c_client *client, int operation, int ctl_name,
|
||||
|
||||
static int __init sm_vt8231_init(void)
|
||||
{
|
||||
int res, addr;
|
||||
int addr;
|
||||
|
||||
printk("vt8231.o version %s (%s)\n", LM_VERSION, LM_DATE);
|
||||
|
||||
|
||||
@@ -655,13 +655,12 @@ static int w83627hf_find(int *address)
|
||||
int w83627hf_detect(struct i2c_adapter *adapter, int address,
|
||||
unsigned short flags, int kind)
|
||||
{
|
||||
int i, val, id;
|
||||
int i, val;
|
||||
struct i2c_client *new_client;
|
||||
struct w83627hf_data *data;
|
||||
int err = 0;
|
||||
const char *type_name = "";
|
||||
const char *client_name = "";
|
||||
enum vendor { winbond, asus } vendid;
|
||||
|
||||
if (!i2c_is_isa_adapter(adapter))
|
||||
return 0;
|
||||
@@ -796,8 +795,7 @@ static int w83627hf_detach_client(struct i2c_client *client)
|
||||
nowhere else be necessary! */
|
||||
static int w83627hf_read_value(struct i2c_client *client, u16 reg)
|
||||
{
|
||||
int res, word_sized, bank;
|
||||
struct i2c_client *cl;
|
||||
int res, word_sized;
|
||||
|
||||
down(&(((struct w83627hf_data *) (client->data))->lock));
|
||||
word_sized = (((reg & 0xff00) == 0x100)
|
||||
@@ -831,8 +829,7 @@ static int w83627hf_read_value(struct i2c_client *client, u16 reg)
|
||||
|
||||
static int w83627hf_write_value(struct i2c_client *client, u16 reg, u16 value)
|
||||
{
|
||||
int word_sized, bank;
|
||||
struct i2c_client *cl;
|
||||
int word_sized;
|
||||
|
||||
down(&(((struct w83627hf_data *) (client->data))->lock));
|
||||
word_sized = (((reg & 0xff00) == 0x100)
|
||||
@@ -1466,7 +1463,7 @@ void w83627hf_sens(struct i2c_client *client, int operation, int ctl_name,
|
||||
|
||||
static int __init sm_w83627hf_init(void)
|
||||
{
|
||||
int res, addr;
|
||||
int addr;
|
||||
|
||||
printk(KERN_INFO "w83627hf.o version %s (%s)\n", LM_VERSION, LM_DATE);
|
||||
if (w83627hf_find(&addr)) {
|
||||
|
||||
Reference in new issue
Block a user