xl: Remove unused variable verbose in info function
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 4 May 2010 10:46:24 +0000 (11:46 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 4 May 2010 10:46:24 +0000 (11:46 +0100)
Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
tools/libxl/xl_cmdimpl.c

index 27aa04a1e9c9741770385cbfc39c5b5c6d6b5da7..2a866178ddecb86d91af40991482cd26c0815284 100644 (file)
@@ -2713,7 +2713,7 @@ static void output_physinfo(void)
     return;
 }
 
-static void info(int verbose)
+static void info(void)
 {
     output_nodeinfo();
 
@@ -2728,9 +2728,8 @@ static void info(int verbose)
 
 int main_info(int argc, char **argv)
 {
-    int opt, verbose;
+    int opt;
 
-    verbose = 0;
     while ((opt = getopt(argc, argv, "h")) != -1) {
         switch (opt) {
         case 'h':
@@ -2742,7 +2741,7 @@ int main_info(int argc, char **argv)
         }
     }
 
-    info(verbose);
+    info();
     exit(0);
 }