engines/nvme: cache errno value
authorJens Axboe <axboe@kernel.dk>
Tue, 4 Apr 2023 14:51:31 +0000 (08:51 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Apr 2023 14:51:31 +0000 (08:51 -0600)
commitaf10f514b5e8713f0821c34fadfe22c91d137720
tree3094f95c4b62dfd4b33a462fc75284de63c84f63
parent590a7bdf84a4c1fb9b128a1680eb719c888396bd
engines/nvme: cache errno value

It's pretty pointless to do a bunch of things in between getting
a -1/errno value, and then expect errno to still be what you want.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
engines/nvme.c