diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2017-06-21 16:37:49 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2017-06-21 16:37:49 +0000 |
commit | 7970799645e8b35ff18e98922587fd47ab017875 (patch) | |
tree | bbd7abb68ca153f8be50cc45aaaa4f67effbdc4e /sys/dev/pv | |
parent | 2fb6e1b81704c9061790fee986b6d028b546faee (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.c | 3 |
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); |