diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-07-16 17:34:07 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-07-16 17:34:07 +0200 |
commit | b631c289c3578ddbf507687abdf8b2712e8d2d37 (patch) | |
tree | da53db0e979894232e6e3df0d800eceab1c7e599 /src/host/osmocon/osmocon.c | |
parent | 1520fad9329a8385c8ac0676791ccb5055a8eb4f (diff) |
osmocon: if we ignore a return value, we don't need to assign it to a variable
Diffstat (limited to 'src/host/osmocon/osmocon.c')
-rw-r--r-- | src/host/osmocon/osmocon.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); } |