+3
−21
Loading
Rather than iterating over the g_nvme_bdevs list to determine if a bdev is an NVMe bdev, we can just compare the module pointer. Also, the function can take a spdk_bdev pointer directly rather than casting from a void pointer. Change-Id: Iccf3c9b3263e9b2d67d07d037dc00d1cbc0f22a1 Signed-off-by:Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/389899 Reviewed-by:
Jim Harris <james.r.harris@intel.com> Tested-by:
SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com>