Skip to content

Commit

Permalink
Fix unused value Coverity types
Browse files Browse the repository at this point in the history
This commit fixes the following Coverity CIDs:
- 467406
- 467274
- 467469
- 467313
- 467400

They are all of type `unused value`.

Signed-off-by: Steven Bellock <[email protected]>
  • Loading branch information
steven-bellock authored and jyao1 committed Aug 19, 2024
1 parent a5a6d32 commit 62ecc4c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 1 addition & 3 deletions library/spdm_common_lib/libspdm_com_context_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -3102,9 +3102,7 @@ void libspdm_deinit_context(void *spdm_context)
context->connection_info.algorithm.req_base_asym_alg, pubkey_context);
}

pubkey_context = NULL;
context->connection_info.peer_used_cert_chain[slot_index].
leaf_cert_public_key = NULL;
context->connection_info.peer_used_cert_chain[slot_index].leaf_cert_public_key = NULL;
}
}
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,7 @@ libspdm_return_t libspdm_handle_error_large_response(

status = libspdm_send_spdm_request(spdm_context, session_id,
spdm_request_size, spdm_request);
spdm_request = NULL;
spdm_request_size = 0;

if (LIBSPDM_STATUS_IS_ERROR(status)) {
break;
}
Expand Down
3 changes: 0 additions & 3 deletions library/spdm_requester_lib/libspdm_req_send_receive.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,9 +417,6 @@ libspdm_return_t libspdm_handle_large_request(
spdm_context, session_id, false,
spdm_request_size, spdm_request);

spdm_request = NULL;
spdm_request_size = 0;

if (LIBSPDM_STATUS_IS_ERROR(status)) {
break;
}
Expand Down

0 comments on commit 62ecc4c

Please sign in to comment.