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:08:47 +0200
commitb84545e30e327b429b7910dc4675b9e3e80df704 (patch)
tree55194733aaa05e81a66a23672686d12bfa4a5817
parentea458f4aa63e1a371a094d804ec4eb6ea6f8dfdd (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 fd79837..bbb9537 100644
--- a/gtp/gtpie.c
+++ b/gtp/gtpie.c
@@ -151,10 +151,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;
}