osmocon: if we ignore a return value, we don't need to assign it to a variable
[osmocom-bb.git] / src / host / osmocon / osmocon.c
index 2da711b..7f74f8f 100644 (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);
 }