Skip to content

Commit

Permalink
perf(PeriphDrivers): Remove Redundant if Statement in I2C Rev A (#781)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Carter authored Nov 6, 2023
1 parent bfd68c1 commit b7c332e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Libraries/PeriphDrivers/Source/I2C/i2c_reva.c
Original file line number Diff line number Diff line change
Expand Up @@ -1440,11 +1440,7 @@ void MXC_I2C_RevA_MasterAsyncHandler(int i2cNum)
}

/* Call the callback */
if (i2c->intfl0 & MXC_I2C_REVA_ERROR) {
MXC_I2C_RevA_AsyncCallback(i2c, E_COMM_ERR);
} else {
MXC_I2C_RevA_AsyncCallback(i2c, E_NO_ERROR);
}
MXC_I2C_RevA_AsyncCallback(i2c, E_NO_ERROR);

/* Clear the async state */
MXC_I2C_RevA_AsyncStop(i2c);
Expand Down

0 comments on commit b7c332e

Please sign in to comment.