From: Yuval Shaia Date: Mon, 30 Apr 2018 20:02:22 +0000 (+0300) Subject: hw/rdma: Delete duplicate definition of MAX_RM_TBL_NAME X-Git-Tag: v3.0.0-rc0~181^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6c080b9ea6efbc277cfa7afc7d4f9d8cc3a9020b;p=thirdparty%2Fqemu.git hw/rdma: Delete duplicate definition of MAX_RM_TBL_NAME By a mistake this constant was defined twice - remove the duplication. Signed-off-by: Yuval Shaia Reviewed-by: Marcel Apfelbaum Message-Id: <20180430200223.4119-7-marcel.apfelbaum@gmail.com> --- diff --git a/hw/rdma/rdma_rm.c b/hw/rdma/rdma_rm.c index 51a47d72922..415da15efef 100644 --- a/hw/rdma/rdma_rm.c +++ b/hw/rdma/rdma_rm.c @@ -21,8 +21,6 @@ #include "rdma_backend.h" #include "rdma_rm.h" -#define MAX_RM_TBL_NAME 16 - /* Page directory and page tables */ #define PG_DIR_SZ { TARGET_PAGE_SIZE / sizeof(__u64) } #define PG_TBL_SZ { TARGET_PAGE_SIZE / sizeof(__u64) } diff --git a/hw/rdma/rdma_rm_defs.h b/hw/rdma/rdma_rm_defs.h index 4d22a20e4cf..226011176d5 100644 --- a/hw/rdma/rdma_rm_defs.h +++ b/hw/rdma/rdma_rm_defs.h @@ -34,9 +34,9 @@ #define MAX_QP_INIT_RD_ATOM 16 #define MAX_AH 64 -#define MAX_RMRESTBL_NAME_SZ 16 +#define MAX_RM_TBL_NAME 16 typedef struct RdmaRmResTbl { - char name[MAX_RMRESTBL_NAME_SZ]; + char name[MAX_RM_TBL_NAME]; QemuMutex lock; unsigned long *bitmap; size_t tbl_sz;