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

Return the correct error code on I2C block read failure.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c-tools/trunk/tools/i2cdump.c

    r4948 r5073  
    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                        }