tools/rtla: Exit with EXIT_SUCCESS when help is invoked
[linux-2.6-microblaze.git] / tools / tracing / rtla / src / timerlat_hist.c
index 3a5b8c4..dbf1540 100644 (file)
@@ -545,7 +545,11 @@ static void timerlat_hist_usage(char *usage)
 
        for (i = 0; msg[i]; i++)
                fprintf(stderr, "%s\n", msg[i]);
-       exit(1);
+
+       if (usage)
+               exit(EXIT_FAILURE);
+
+       exit(EXIT_SUCCESS);
 }
 
 /*