Skip to content

Commit 3412290

Browse files
alistair23twilfredo
authored andcommitted
libspdm: Remove unnecessary unsafe block
Signed-off-by: Alistair Francis <[email protected]>
1 parent 906d889 commit 3412290

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/libspdm/spdm.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,14 +1719,12 @@ fn libspdm_fill_measurement_image_hash_block(
17191719
}
17201720

17211721
#[cfg(feature = "no_std")]
1722-
unsafe {
1723-
fill_static_measurement_image_hash_block(
1724-
use_bit_stream,
1725-
measurement_hash_algo,
1726-
measurements_index,
1727-
measurement_block,
1728-
)
1729-
}
1722+
fill_static_measurement_image_hash_block(
1723+
use_bit_stream,
1724+
measurement_hash_algo,
1725+
measurements_index,
1726+
measurement_block,
1727+
)
17301728
}
17311729

17321730
/// # Summary

0 commit comments

Comments
 (0)