coverity: dead code

This commit is contained in:
Laxmikant Rashinkar
2014-07-26 15:06:35 -07:00
parent 56e43c4a38
commit 0915d33d70
5 changed files with 13 additions and 17 deletions
+2
View File
@@ -243,11 +243,13 @@ WTSVirtualChannelWrite(void *hChannelHandle, const char *Buffer,
return 0;
}
#if 0 /* coverity: this is dead code */
/* error, but is it ok to try again? */
if ((rv == EWOULDBLOCK) || (rv == EAGAIN) || (rv == EINPROGRESS))
{
return 0; /* failed to send, but should try again */
}
#endif
/* fatal error */
return -1;