Show
Ignore:
Timestamp:
06/27/03 18:15:24 (11 years ago)
Author:
khali
Message:

Fixed a compiler warning, plus some code clean-ups.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/busses/i2c-nforce2.c

    r1803 r1818  
    146146{ 
    147147        struct nforce2_smbus *smbus = adap->algo_data; 
    148         unsigned char protocol, len, pec, temp; 
     148        unsigned char protocol, pec, temp; 
     149        unsigned char len = 0; /* to keep the compiler quiet */ 
    149150        int timeout = 0; 
    150151        int i; 
     
    277278 
    278279                case I2C_SMBUS_WORD_DATA: 
    279                 case I2C_SMBUS_PROC_CALL: 
     280                /* case I2C_SMBUS_PROC_CALL: not supported */ 
    280281                        data->word = inb_p(NVIDIA_SMB_DATA) | (inb_p(NVIDIA_SMB_DATA+1) << 8); 
    281282                        break; 
    282283 
    283284                case I2C_SMBUS_BLOCK_DATA: 
    284                 case I2C_SMBUS_BLOCK_PROC_CALL: 
     285                /* case I2C_SMBUS_BLOCK_PROC_CALL: not supported */ 
    285286                        len = inb_p(NVIDIA_SMB_BCNT); 
    286287                        len = min_t(u8, len, 32);