/* This function releases all the resources allocated for the I2C device. */
VOID ReleaseI2cDeviceContext(IN I2C_DEVICE_CONTEXT *I2cDeviceContext)
/* This function releases all the resources allocated for the I2C device. */
VOID ReleaseI2cDeviceContext(IN I2C_DEVICE_CONTEXT *I2cDeviceContext)
{
  if (I2cDeviceContext == NULL) {
    return;
  }
  if (I2cDeviceContext->DevicePath != NULL) {
    FreePool (I2cDeviceContext->DevicePath);
  }
  FreePool (I2cDeviceContext);
}