From: Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org>
To: Ira Weiny <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: linux-rdma <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: [PATCH for infiniband-diags] get_lid_from_name(): Remove an unused variable
Date: Sun, 18 Aug 2013 10:57:07 +0200 [thread overview]
Message-ID: <52108C63.9080101@acm.org> (raw)
This patch avoids that the following compiler warning is triggered:
src/saquery.c:869:18: warning: variable 'p_ni' set but not used [-Wunused-but-set-variable]
Signed-off-by: Bart Van Assche <bvanassche-HInyCGIudOg@public.gmane.org>
---
src/saquery.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/saquery.c b/src/saquery.c
index e4fbc87..d6fd017 100644
--- a/src/saquery.c
+++ b/src/saquery.c
@@ -866,7 +866,6 @@ static int get_and_dump_all_records(struct sa_handle * h, uint16_t attr_id,
static int get_lid_from_name(struct sa_handle * h, const char *name, uint16_t * lid)
{
ib_node_record_t *node_record = NULL;
- ib_node_info_t *p_ni = NULL;
unsigned i;
int ret;
struct sa_query_result result;
@@ -878,7 +877,6 @@ static int get_lid_from_name(struct sa_handle * h, const char *name, uint16_t *
ret = ENONET;
for (i = 0; i < result.result_cnt; i++) {
node_record = sa_get_query_rec(result.p_result_madw, i);
- p_ni = &(node_record->node_info);
if (name
&& strncmp(name, (char *)node_record->node_desc.description,
sizeof(node_record->node_desc.description)) ==
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2013-08-18 8:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-18 8:57 Bart Van Assche [this message]
[not found] ` <52108C63.9080101-HInyCGIudOg@public.gmane.org>
2013-08-19 6:25 ` [PATCH for infiniband-diags] get_lid_from_name(): Remove an unused variable Ira Weiny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52108C63.9080101@acm.org \
--to=bvanassche-hinycgiudog@public.gmane.org \
--cc=ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.