From 0eafa7078f8d0ae65dc2f763be5d3b2f39a006f0 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Wed, 19 Jul 2017 15:22:10 +0000 Subject: [PATCH] Remove dead code that was killed by r320975 Reported by: Coverity CID: 1377977 MFC after: 15 days X-MFC-With: 320975 Sponsored by: Spectra Logic Corp --- tests/sys/aio/aio_test.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/tests/sys/aio/aio_test.c b/tests/sys/aio/aio_test.c index f2c3610bdb8..eb28218a670 100644 --- a/tests/sys/aio/aio_test.c +++ b/tests/sys/aio/aio_test.c @@ -158,15 +158,10 @@ poll(struct aiocb *aio) while ((error = aio_error(aio)) == EINPROGRESS) usleep(25000); - switch (error) { - case EINPROGRESS: - errno = EINTR; - return (-1); - case 0: - return (aio_return(aio)); - default: - return (error); - } + if (error) + return (error); + else + return (aio_return(aio)); } static void