Changeset 3211

Show
Ignore:
Timestamp:
12/11/05 11:05:17 (8 years ago)
Author:
khali
Message:

Drop useless local variable.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/chips/w83792d.c

    r3210 r3211  
    14081408        struct w83792d_data *data = client->data; 
    14091409        int nr = ctl_name - W83792D_SYSCTL_PWM1; 
    1410         u8 pwm_to_reg = 0, pwm_mask; 
     1410        u8 pwm_mask; 
    14111411 
    14121412        if (operation == SENSORS_PROC_REAL_INFO) 
     
    14171417                *nrels_mag = 1; 
    14181418        } else if (operation == SENSORS_PROC_REAL_WRITE) { 
    1419                 pwm_to_reg = SENSORS_LIMIT(results[0], 0, 15); 
    1420                 data->pwm[nr] = pwm_to_reg; 
     1419                data->pwm[nr] = SENSORS_LIMIT(results[0], 0, 15); 
    14211420                pwm_mask = w83792d_read_value(client,W83792D_REG_PWM[nr]) & 0xf0; 
    14221421                w83792d_write_value(client,W83792D_REG_PWM[nr],pwm_mask|data->pwm[nr]);