From b631c289c3578ddbf507687abdf8b2712e8d2d37 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 16 Jul 2011 17:34:07 +0200 Subject: osmocon: if we ignore a return value, we don't need to assign it to a variable --- src/host/osmocon/osmocon.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/host/osmocon/osmocon.c') diff --git a/src/host/osmocon/osmocon.c b/src/host/osmocon/osmocon.c index 2da711b2..7f74f8fc 100644 --- a/src/host/osmocon/osmocon.c +++ b/src/host/osmocon/osmocon.c @@ -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); } -- cgit v1.2.3