Signed-off-by: Andy Grover <agro...@redhat.com> --- usr/be2iscsi.c | 1 - usr/login.c | 2 -- usr/netlink.c | 3 +-- utils/open-isns/bitvector.c | 15 ++++++--------- utils/open-isns/dd.c | 3 +-- 5 files changed, 8 insertions(+), 16 deletions(-)
diff --git a/usr/be2iscsi.c b/usr/be2iscsi.c index ba4c29f..8a346a5 100644 --- a/usr/be2iscsi.c +++ b/usr/be2iscsi.c @@ -19,7 +19,6 @@ void be2iscsi_create_conn(struct iscsi_conn *conn) { struct iscsi_session *session = conn->session; - conn_rec_t *conn_rec = &session->nrec.conn[conn->id]; if (conn->max_recv_dlength > 65536) conn->max_recv_dlength = 65536; diff --git a/usr/login.c b/usr/login.c index db76c80..b0be79b 100644 --- a/usr/login.c +++ b/usr/login.c @@ -50,11 +50,9 @@ iscsi_add_text(struct iscsi_hdr *pdu, char *data, int max_data_length, int pdu_length = ntoh24(pdu->dlength); char *text = data; char *end = data + max_data_length; - char *pdu_text; /* find the end of the current text */ text += pdu_length; - pdu_text = text; pdu_length += length; if (text + length >= end) { diff --git a/usr/netlink.c b/usr/netlink.c index b0dfb03..328f21c 100644 --- a/usr/netlink.c +++ b/usr/netlink.c @@ -1238,13 +1238,12 @@ static int kget_chap(uint64_t transport_handle, uint32_t host_no, static int kset_chap(uint64_t transport_handle, uint32_t host_no, struct iovec *iovs, uint32_t param_count) { - int rc, ev_len; + int rc; struct iscsi_uevent ev; struct iovec *iov = iovs + 1; log_debug(8, "in %s", __func__); - ev_len = sizeof(ev); ev.type = ISCSI_UEVENT_SET_CHAP; ev.transport_handle = transport_handle; ev.u.set_path.host_no = host_no; diff --git a/utils/open-isns/bitvector.c b/utils/open-isns/bitvector.c index 3e23f26..9d66276 100644 --- a/utils/open-isns/bitvector.c +++ b/utils/open-isns/bitvector.c @@ -327,10 +327,10 @@ isns_bitvector_is_empty(const isns_bitvector_t *bv) wp = bv->ib_words; end = wp + bv->ib_count; while (wp < end) { - unsigned int base, rlen; + unsigned int rlen; - base = *wp++; - rlen = *wp++; + rlen = wp[1]; + wp += 2; while (rlen--) { if (*wp++) @@ -462,11 +462,10 @@ isns_bitvector_foreach(const isns_bitvector_t *bv, wp = bv->ib_words; end = wp + bv->ib_count; while (wp < end) { - unsigned int base, rlen, bits; + unsigned int base, rlen; base = wp[0]; rlen = wp[1]; - bits = rlen * 32; wp += 2; while (rlen--) { @@ -492,11 +491,10 @@ isns_bitvector_dump(const isns_bitvector_t *bv, isns_print_fn_t *fn) wp = bv->ib_words; end = wp + bv->ib_count; while (wp < end) { - unsigned int base, rlen, bits; + unsigned int base, rlen; base = wp[0]; rlen = wp[1]; - bits = rlen * 32; wp += 2; fn(" <%u:", base); @@ -538,11 +536,10 @@ isns_bitvector_print(const isns_bitvector_t *bv, wp = bv->ib_words; end = wp + bv->ib_count; while (wp < end) { - unsigned int base, rlen, bits; + unsigned int base, rlen; base = wp[0]; rlen = wp[1]; - bits = rlen * 32; wp += 2; while (rlen--) { diff --git a/utils/open-isns/dd.c b/utils/open-isns/dd.c index b392036..c2dcd10 100644 --- a/utils/open-isns/dd.c +++ b/utils/open-isns/dd.c @@ -599,10 +599,9 @@ isns_dd_insert(isns_dd_t *dd) void isns_dd_list_resize(isns_dd_list_t *list, unsigned int last_index) { - unsigned int new_size, cur_size; + unsigned int new_size; isns_dd_t **new_data; - cur_size = LIST_SIZE(list->ddl_count); new_size = LIST_SIZE(last_index + 1); if (new_size < list->ddl_count) return; -- 1.9.3 -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to open-iscsi+unsubscr...@googlegroups.com. To post to this group, send email to open-iscsi@googlegroups.com. Visit this group at http://groups.google.com/group/open-iscsi. For more options, visit https://groups.google.com/d/optout.