nvmf/rpc: remove NULL checks for spdk_jsonrpc_begin_result()
spdk_jsonrpc_begin_result() was changed to always return non-NULL a while ago. Most of the checks were removed from SPDK, but this one must have been omitted because to its unusual structure. Change-Id: If305d7a27d8e6bd4dae1aa8221efabba50db1982 Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/1330 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
2da5c24d8e
commit
09c6dea132
@ -1958,11 +1958,6 @@ spdk_rpc_nvmf_get_stats(struct spdk_jsonrpc_request *request,
|
||||
}
|
||||
|
||||
ctx->w = spdk_jsonrpc_begin_result(ctx->request);
|
||||
if (NULL == ctx->w) {
|
||||
free_get_stats_ctx(ctx);
|
||||
return;
|
||||
}
|
||||
|
||||
spdk_json_write_object_begin(ctx->w);
|
||||
spdk_json_write_named_uint64(ctx->w, "tick_rate", spdk_get_ticks_hz());
|
||||
spdk_json_write_named_array_begin(ctx->w, "poll_groups");
|
||||
|
Loading…
Reference in New Issue
Block a user