+34
−10
Loading
Sometimes, from the context, it is not clear whether the given pointer is valid or NULL therefore, added checks for that. Also added do/while to prevent other potential bugs. Additionally make logs slightly more compact by removing the spaces. Change-Id: I9f4c06077b5e87a01d2d0f34cc53a48201b8ff72 Signed-off-by:Jacek Kalwas <jacek.kalwas@nutanix.com> Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26540 Reviewed-by:
Jim Harris <jim.harris@nvidia.com> Tested-by:
SPDK Automated Test System <spdkbot@gmail.com> Community-CI: Mellanox Build Bot Reviewed-by:
Tomasz Zawadzki <tomasz@tzawadzki.com>