From ec99ec02b0161405ec7636af52dc31a7912399b5 Mon Sep 17 00:00:00 2001 From: Nick Brassel Date: Mon, 9 Aug 2021 10:24:31 +1000 Subject: [PATCH] Fix compilation issue. --- quantum/split_common/transactions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantum/split_common/transactions.h b/quantum/split_common/transactions.h index 4306ba1d872e..53610d6f8e85 100644 --- a/quantum/split_common/transactions.h +++ b/quantum/split_common/transactions.h @@ -38,7 +38,7 @@ typedef struct _split_transaction_desc_t { // Forward declaration for the split transactions extern split_transaction_desc_t split_transaction_table[NUM_TOTAL_TRANSACTIONS]; -#define split_shmem_offset_ptr(offset) ((void *)(((uint8_t *)split_shmem) + (offset))) +#define split_shmem_offset_ptr(offset) (((uint8_t *)split_shmem) + (offset)) #define split_trans_initiator2target_buffer(trans) (split_shmem_offset_ptr((trans)->initiator2target_offset)) #define split_trans_target2initiator_buffer(trans) (split_shmem_offset_ptr((trans)->target2initiator_offset))