Commit 36791032 authored by Pravin M Bathija's avatar Pravin M Bathija Committed by Tomasz Zawadzki
Browse files

vhost_user: remove assert



remove the assert which is executed on negative condition for
return value of spdk_mem_unregister. Other places in spdk, this
is not being checked.

Change-Id: If9ce2d912b780ae1bbec5b51bd6295cc47afea6b
Signed-off-by: default avatarPravin M Bathija <pravin.bathija@dell.com>
Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26368


Reviewed-by: default avatarJim Harris <jim.harris@nvidia.com>
Reviewed-by: default avatarChangpeng Liu <changpeliu@tencent.com>
Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK Automated Test System <spdkbot@gmail.com>
parent 44735d93
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -763,9 +763,7 @@ vhost_session_mem_unregister(struct rte_vhost_memory *mem)
			continue; /* region has not been registered */
		}

		if (spdk_mem_unregister((void *)start, len) != 0) {
			assert(false);
		}
		spdk_mem_unregister((void *)start, len);
	}
}