Commit 307631e1 authored by Shuhei Matsumoto's avatar Shuhei Matsumoto Committed by Jim Harris
Browse files

nvme_perf: Remove unnecessary zeroing the buffer by memset



Change-Id: I503eb154a1c4fd8ddb5b37855cd84b65118b70af
Signed-off-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/c/441269


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
Reviewed-by: default avatarArshad Hussain <arshad.super@gmail.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
parent 21b049f9
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1272,7 +1272,6 @@ add_trid(const char *trid_str)
	}

	trid = &trid_entry->trid;
	memset(trid, 0, sizeof(*trid));
	trid->trtype = SPDK_NVME_TRANSPORT_PCIE;
	snprintf(trid->subnqn, sizeof(trid->subnqn), "%s", SPDK_NVMF_DISCOVERY_NQN);

@@ -1733,11 +1732,10 @@ associate_workers_with_ns(void)
			break;
		}

		ns_ctx = malloc(sizeof(struct ns_worker_ctx));
		ns_ctx = calloc(1, sizeof(struct ns_worker_ctx));
		if (!ns_ctx) {
			return -1;
		}
		memset(ns_ctx, 0, sizeof(*ns_ctx));

		printf("Associating %s with lcore %d\n", entry->name, worker->lcore);
		ns_ctx->min_tsc = UINT64_MAX;