bucoord: Remove dead assignments in cmd init
authorSimon Wilkinson <sxw@your-file-system.com>
Mon, 25 Feb 2013 10:32:22 +0000 (10:32 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Mon, 25 Feb 2013 21:29:10 +0000 (13:29 -0800)
Don't assign command syntax objects to 'ts' if we're not going
to add any parameters to them

Change-Id: I69f6e090fc115ab213c1f20dc46da81f2878e0a3
Reviewed-on: http://gerrit.openafs.org/9260
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>

src/bucoord/main.c

index 414aa1f..c521b5c 100644 (file)
@@ -525,7 +525,7 @@ main(int argc, char **argv)
     if (!interact)
        add_std_args(ts);
 
-    ts = cmd_CreateSyntax("quit", bc_QuitCmd, NULL, "leave the program");
+    cmd_CreateSyntax("quit", bc_QuitCmd, NULL, "leave the program");
 
     ts = cmd_CreateSyntax("volsetrestore", bc_VolsetRestoreCmd, NULL,
                          "restore a set of volumes");
@@ -562,7 +562,7 @@ main(int argc, char **argv)
     if (!interact)
        add_std_args(ts);
 
-    ts = cmd_CreateSyntax("jobs", bc_JobsCmd, NULL, "list running jobs");
+    cmd_CreateSyntax("jobs", bc_JobsCmd, NULL, "list running jobs");
 
     ts = cmd_CreateSyntax("kill", bc_KillCmd, NULL, "kill running job");
     cmd_AddParm(ts, "-id", CMD_SINGLE, CMD_REQUIRED,