Merge commit '3710e462f85824cd9d84b3f95e6b2ea694119ff9'

This commit is contained in:
Sylvain Munaut 2011-05-29 19:49:53 +02:00
commit 36c2f7f420
1 changed files with 0 additions and 3 deletions

View File

@ -197,16 +197,13 @@ static int gsmtap_wq_w_cb(struct osmo_fd *ofd, struct msgb *msg)
rc = write(ofd->fd, msg->data, msg->len);
if (rc < 0) {
perror("writing msgb to gsmtap fd");
msgb_free(msg);
return rc;
}
if (rc != msg->len) {
perror("short write to gsmtap fd");
msgb_free(msg);
return -EIO;
}
msgb_free(msg);
return 0;
}