diff --git a/raw.c b/raw.c index 81ec431..15c9756 100644 --- a/raw.c +++ b/raw.c @@ -336,8 +336,7 @@ static int raw_send(struct transport *t, struct fdarray *fda, cnt = send(fd, ptr, len, 0); if (cnt < 1) { - pr_err("send failed: %d %m", errno); - return cnt; + return -errno; } /* * Get the time stamp right away.