Skip to content

Commit

Permalink
remove unnecessary slot_id assignment.
Browse files Browse the repository at this point in the history
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
  • Loading branch information
jyao1 committed Oct 22, 2024
1 parent 5149b56 commit 238fb80
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion library/spdm_common_lib/libspdm_com_context_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,6 @@ libspdm_return_t libspdm_set_data(void *spdm_context, libspdm_data_type_t data_t
if (parameter->location != LIBSPDM_DATA_LOCATION_LOCAL) {
return LIBSPDM_STATUS_INVALID_PARAMETER;
}
slot_id = parameter->additional_data[0];
if (data_size != sizeof(uint8_t)) {
return LIBSPDM_STATUS_INVALID_PARAMETER;
}
Expand Down

0 comments on commit 238fb80

Please sign in to comment.