summaryrefslogtreecommitdiff
path: root/sys/dev/pv
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2017-06-21 16:37:49 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2017-06-21 16:37:49 +0000
commit7970799645e8b35ff18e98922587fd47ab017875 (patch)
treebbd7abb68ca153f8be50cc45aaaa4f67effbdc4e /sys/dev/pv
parent2fb6e1b81704c9061790fee986b6d028b546faee (diff)
Return early from NVS command submission if no response is required
Diffstat (limited to 'sys/dev/pv')
-rw-r--r--sys/dev/pv/if_hvn.c3
1 files changed, 3 insertions, 0 deletions
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);