osmocon: if we ignore a return value, we don't need to assign it to a variable

This commit is contained in:
Harald Welte 2011-07-16 17:34:07 +02:00
parent 1520fad932
commit b631c289c3
1 changed files with 1 additions and 3 deletions

View File

@ -778,9 +778,7 @@ static void hdlc_send_to_phone(uint8_t dlci, uint8_t *data, int len)
static void hdlc_console_cb(uint8_t dlci, struct msgb *msg)
{
int rc;
rc = write(1, msg->data, msg->len);
write(1, msg->data, msg->len);
msgb_free(msg);
}