aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-10-19 13:24:51 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-10-19 14:21:48 +0200
commit065476d192459e710348ece10895245c9a8bfffc (patch)
treec8a1d6b24ac0365fa5c0b701f0e7f7e46aff54cb
parentaf9ba522f5fc1a4155af56cdac2cc2012247b48e (diff)
cosmetic: gtpie_gettv0(): flow readability
-rw-r--r--gtp/gtpie.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gtp/gtpie.c b/gtp/gtpie.c
index 232183e..d70db6a 100644
--- a/gtp/gtpie.c
+++ b/gtp/gtpie.c
@@ -150,10 +150,9 @@ int gtpie_gettv0(union gtpie_member *ie[], int type, int instance,
{
int ien;
ien = gtpie_getie(ie, type, instance);
- if (ien >= 0)
- memcpy(dst, ie[ien]->tv0.v, size);
- else
+ if (ien < 0)
return EOF;
+ memcpy(dst, ie[ien]->tv0.v, size);
return 0;
}