dbus-send: remove minor dead code
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 26 Jan 2011 18:40:49 +0000 (18:40 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 25 May 2011 15:11:27 +0000 (16:11 +0100)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=33128
Reviewed-by: Cosimo Alfarano <cosimo.alfarano@collabora.co.uk>
tools/dbus-send.c

index c7d5090..e5df15c 100644 (file)
@@ -302,10 +302,8 @@ main (int argc, char *argv[])
        usage (1);
       else if (path == NULL)
         path = arg;
-      else if (name == NULL)
+      else /* name == NULL guaranteed by the 'while' loop */
         name = arg;
-      else
-        usage (1);
     }
 
   if (name == NULL)