lib/ftl: Minor cleanup in reloc module
This patch removes some unused variables from ftl_reloc_init(). Change-Id: I483b28ad2f6331088c44bb5b215b4db50546a06b Signed-off-by: Wojciech Malikowski <wojciech.malikowski@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/472044 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Mateusz Kozlowski <mateusz.kozlowski@intel.com> Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
a816afaaaf
commit
7012a2760e
@ -669,10 +669,7 @@ ftl_reloc_add_active_queue(struct ftl_band_reloc *breloc)
|
|||||||
struct ftl_reloc *
|
struct ftl_reloc *
|
||||||
ftl_reloc_init(struct spdk_ftl_dev *dev)
|
ftl_reloc_init(struct spdk_ftl_dev *dev)
|
||||||
{
|
{
|
||||||
#define POOL_NAME_LEN 128
|
|
||||||
struct ftl_reloc *reloc;
|
struct ftl_reloc *reloc;
|
||||||
char pool_name[POOL_NAME_LEN];
|
|
||||||
int rc;
|
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
reloc = calloc(1, sizeof(*reloc));
|
reloc = calloc(1, sizeof(*reloc));
|
||||||
@ -702,11 +699,6 @@ ftl_reloc_init(struct spdk_ftl_dev *dev)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = snprintf(pool_name, sizeof(pool_name), "%s-%s", dev->name, "reloc-io-pool");
|
|
||||||
if (rc < 0 || rc >= POOL_NAME_LEN) {
|
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
|
|
||||||
TAILQ_INIT(&reloc->pending_queue);
|
TAILQ_INIT(&reloc->pending_queue);
|
||||||
TAILQ_INIT(&reloc->active_queue);
|
TAILQ_INIT(&reloc->active_queue);
|
||||||
TAILQ_INIT(&reloc->prio_queue);
|
TAILQ_INIT(&reloc->prio_queue);
|
||||||
|
Loading…
Reference in New Issue
Block a user