diff options
-rwxr-xr-x | src/usr/i2c/i2c.C | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/usr/i2c/i2c.C b/src/usr/i2c/i2c.C index d8cde876e..59dda817a 100755 --- a/src/usr/i2c/i2c.C +++ b/src/usr/i2c/i2c.C @@ -2724,14 +2724,13 @@ errlHndl_t i2cReset ( TARGETING::Target * i_target, // So just commit the log here and let the function continue. errlCommit( err, I2C_COMP_ID ); } - } else { - - // Part of doing the I2C Master reset is also sending a stop - // command to the slave device. - err = i2cSendSlaveStop( i_target, - i_args ); } + // Part of doing the I2C Master reset is also sending a stop + // command to the slave device. + err = i2cSendSlaveStop( i_target, + i_args ); + if( err ) { break; |