Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jul 2017 15:22:11 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r321206 - head/tests/sys/aio
Message-ID:  <201707191522.v6JFMB3h093952@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: asomers
Date: Wed Jul 19 15:22:10 2017
New Revision: 321206
URL: https://svnweb.freebsd.org/changeset/base/321206

Log:
  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

Modified:
  head/tests/sys/aio/aio_test.c

Modified: head/tests/sys/aio/aio_test.c
==============================================================================
--- head/tests/sys/aio/aio_test.c	Wed Jul 19 15:12:23 2017	(r321205)
+++ head/tests/sys/aio/aio_test.c	Wed Jul 19 15:22:10 2017	(r321206)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707191522.v6JFMB3h093952>