Skip to content

Commit

Permalink
TCTI: Remove dead code in I2C helper.
Browse files Browse the repository at this point in the history
The variable platform_conf was checked twice.

Signed-off-by: Juergen Repp <[email protected]>
  • Loading branch information
JuergenReppSIT committed Jan 30, 2024
1 parent bc088b1 commit 1212c65
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/tss2-tcti/tcti-i2c-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -748,10 +748,6 @@ TSS2_RC Tss2_Tcti_I2c_Helper_Init (TSS2_TCTI_CONTEXT* tcti_context, size_t* size
return TSS2_TCTI_RC_INSUFFICIENT_BUFFER;
}

if (!platform_conf) {
return TSS2_TCTI_RC_BAD_VALUE;
}

/* Init TCTI context */
TSS2_TCTI_MAGIC (tcti_context) = TCTI_I2C_HELPER_MAGIC;
TSS2_TCTI_VERSION (tcti_context) = TCTI_VERSION;
Expand Down

0 comments on commit 1212c65

Please sign in to comment.