Since r is always < 0 at the last if/else there is no point
in testing for it.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zb->tail += r;
else if (r == 0)
r = -2;
- else if (r < 0 && ERRNO_IO_RETRY(errno))
+ else if (ERRNO_IO_RETRY(errno))
r = 0;
return r;
zbuf_reset(zb);
} else if (r == 0)
r = -2;
- else if (r < 0 && ERRNO_IO_RETRY(errno))
+ else if (ERRNO_IO_RETRY(errno))
r = 0;
return r;
zb->tail += r;
else if (r == 0)
r = -2;
- else if (r < 0 && ERRNO_IO_RETRY(errno))
+ else if (ERRNO_IO_RETRY(errno))
r = 0;
return r;
}