[ofa-general] [PATCH] iblinkinfo: remove unused file pointer.
Ira Weiny
weiny2 at llnl.gov
Thu May 14 16:42:10 PDT 2009
From: Ira Weiny <weiny2 at llnl.gov>
Date: Thu, 14 May 2009 16:39:52 -0700
Subject: [PATCH] iblinkinfo: remove unused file pointer.
Signed-off-by: Ira Weiny <weiny2 at llnl.gov>
---
infiniband-diags/src/iblinkinfo.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/infiniband-diags/src/iblinkinfo.c b/infiniband-diags/src/iblinkinfo.c
index 367056c..d422a2a 100644
--- a/infiniband-diags/src/iblinkinfo.c
+++ b/infiniband-diags/src/iblinkinfo.c
@@ -52,7 +52,6 @@
#include <infiniband/ibnetdisc.h>
char *argv0 = "iblinkinfotest";
-static FILE *f;
static char *node_name_map_file = NULL;
static nn_map_t *node_name_map = NULL;
@@ -294,8 +293,6 @@ main(int argc, char **argv)
{ 0 }
};
- f = stdout;
-
argv0 = argv[0];
while (1) {
@@ -357,9 +354,6 @@ main(int argc, char **argv)
argc -= optind;
argv += optind;
- if (argc && !(f = fopen(argv[0], "w")))
- fprintf(stderr, "can't open file %s for writing", argv[0]);
-
ibmad_port = mad_rpc_open_port(ca, ca_port, mgmt_classes, 3);
if (!ibmad_port) {
fprintf(stderr, "Failed to open %s port %d", ca, ca_port);
--
1.5.4.5
More information about the general
mailing list