From 151eff43ddadfc837c9937d7680256e1b6fc04f6 Mon Sep 17 00:00:00 2001 From: Shuhei Matsumoto Date: Fri, 4 Sep 2020 18:03:10 +0900 Subject: [PATCH] lib/nvmf: Remove unused structures and macro constants in nvmf_rpc.c Data structure and macro constants for multiple listen addresses and namespaces are not used anywhere in nvmf_rpc.c Signed-off-by: Shuhei Matsumoto Change-Id: Idd8bc61e22f9e9918a88f017a024cab239ff5e53 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4060 Tested-by: SPDK CI Jenkins Community-CI: Broadcom CI Reviewed-by: Aleksey Marchuk Reviewed-by: Jim Harris --- lib/nvmf/nvmf_rpc.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/lib/nvmf/nvmf_rpc.c b/lib/nvmf/nvmf_rpc.c index 5f1d612a5..1a27a9c5d 100644 --- a/lib/nvmf/nvmf_rpc.c +++ b/lib/nvmf/nvmf_rpc.c @@ -544,14 +544,6 @@ struct rpc_listen_address { char *trsvcid; }; -#define RPC_MAX_LISTEN_ADDRESSES 255 -#define RPC_MAX_NAMESPACES 255 - -struct rpc_listen_addresses { - size_t num_listen_address; - struct rpc_listen_address addresses[RPC_MAX_LISTEN_ADDRESSES]; -}; - static const struct spdk_json_object_decoder rpc_listen_address_decoders[] = { /* NOTE: "transport" is kept for compatibility; new code should use "trtype" */ {"transport", offsetof(struct rpc_listen_address, transport), spdk_json_decode_string, true}, @@ -912,12 +904,6 @@ struct spdk_nvmf_ns_params { struct spdk_uuid uuid; }; -struct rpc_namespaces { - size_t num_ns; - struct spdk_nvmf_ns_params ns_params[RPC_MAX_NAMESPACES]; -}; - - static const struct spdk_json_object_decoder rpc_ns_params_decoders[] = { {"nsid", offsetof(struct spdk_nvmf_ns_params, nsid), spdk_json_decode_uint32, true}, {"bdev_name", offsetof(struct spdk_nvmf_ns_params, bdev_name), spdk_json_decode_string},