From f16a32e726601f365a3db7c159a87240d3919ed2 Mon Sep 17 00:00:00 2001 From: mikeb Date: Wed, 21 Jun 2017 16:37:48 +0000 Subject: [PATCH] Return early from NVS command submission if no response is required --- sys/dev/pv/if_hvn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/pv/if_hvn.c b/sys/dev/pv/if_hvn.c index 377bc672c56..9613bdf722d 100644 --- a/sys/dev/pv/if_hvn.c +++ b/sys/dev/pv/if_hvn.c @@ -1045,6 +1045,9 @@ hvn_nvs_cmd(struct hvn_softc *sc, void *cmd, size_t cmdsize, uint64_t tid, return (rv); } + if (timo == 0) + return (0); + do { if (cold) delay(1000); -- 2.20.1