changeset 31995:2868b79aa4c5

Remove a useless "else".
author reimar
date Wed, 08 Sep 2010 18:01:56 +0000
parents 2b209fa9c48d
children 6ba4e1cfbaf9
files udp_sync.c
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/udp_sync.c	Wed Sep 08 17:59:07 2010 +0000
+++ b/udp_sync.c	Wed Sep 08 18:01:56 2010 +0000
@@ -128,13 +128,9 @@
 
         mesg[chars_received] = 0;
 
-        if (strcmp(mesg, "bye") == 0) {
+        if (strcmp(mesg, "bye") == 0)
             return 1;
-        } else {
             sscanf(mesg, "%f", master_position);
-            return 0;
-        }
-
     return 0;
 }