Show
Ignore:
Timestamp:
12/15/07 23:35:17 (4 years ago)
Author:
khali
Message:

Return the correct error code on I2C block read failure.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/dump/i2cdump.c

    r4950 r5074  
    314314                                        i = i2c_smbus_read_i2c_block_data(file, 
    315315                                                res, 32, cblock + res); 
    316                                         if (i <= 0) 
     316                                        if (i <= 0) { 
     317                                                res = i; 
    317318                                                break; 
     319                                        } 
    318320                                } 
    319321                        }