bdev: fix asserts in config dump

Change-Id: I1e7cb7105371c1b2a1feccb715fdb3a7c473ca83
Signed-off-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-on: https://review.gerrithub.io/405808
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
Pawel Wodkowski 2018-03-29 19:38:32 +02:00 committed by Jim Harris
parent 44758678e6
commit 39c9463a08

View File

@ -983,8 +983,8 @@ spdk_bdev_dump_info_json(struct spdk_bdev *bdev, struct spdk_json_write_ctx *w)
void
spdk_bdev_config_json(struct spdk_bdev *bdev, struct spdk_json_write_ctx *w)
{
assert(bdev == NULL);
assert(w == NULL);
assert(bdev != NULL);
assert(w != NULL);
if (bdev->fn_table->write_config_json) {
bdev->fn_table->write_config_json(bdev, w);