From 91cab3414ca26334aece834caa33f324e6c17167 Mon Sep 17 00:00:00 2001 From: paul Luse Date: Thu, 10 Jun 2021 15:01:34 +0000 Subject: [PATCH] lib/idxd: remove casts that are no longer needed Left over from when the field was a void * Signed-off-by: paul Luse Change-Id: If9dfe2878f6afd6137d6d8efec90e310baf417f1 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8280 Tested-by: SPDK CI Jenkins Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Reviewed-by: Jim Harris Reviewed-by: Ben Walker Reviewed-by: Ziye Yang --- lib/idxd/idxd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/idxd/idxd.c b/lib/idxd/idxd.c index 6957c578c..371bf0285 100644 --- a/lib/idxd/idxd.c +++ b/lib/idxd/idxd.c @@ -1079,8 +1079,8 @@ spdk_idxd_process_events(struct spdk_idxd_io_channel *chan) break; case IDXD_OPCODE_CRC32C_GEN: case IDXD_OPCODE_COPY_CRC: - *(uint32_t *)comp_ctx->crc_dst = comp_ctx->hw.crc32c_val; - *(uint32_t *)comp_ctx->crc_dst ^= ~0; + *comp_ctx->crc_dst = comp_ctx->hw.crc32c_val; + *comp_ctx->crc_dst ^= ~0; break; case IDXD_OPCODE_COMPARE: if (status == 0) {