Return early from NVS command submission if no response is required
authormikeb <mikeb@openbsd.org>
Wed, 21 Jun 2017 16:37:48 +0000 (16:37 +0000)
committermikeb <mikeb@openbsd.org>
Wed, 21 Jun 2017 16:37:48 +0000 (16:37 +0000)
sys/dev/pv/if_hvn.c

index 377bc67..9613bdf 100644 (file)
@@ -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);