From: mikeb Date: Wed, 21 Jun 2017 16:37:48 +0000 (+0000) Subject: Return early from NVS command submission if no response is required X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f16a32e726601f365a3db7c159a87240d3919ed2;p=openbsd Return early from NVS command submission if no response is required --- 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);