From f4223d96c7c52057500d95b1a9f925aa46b121d1 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sat, 31 Dec 2011 10:26:43 +1100 Subject: [PATCH] Remove unused variable --- lib/scsi-command.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/scsi-command.c b/lib/scsi-command.c index 3e3f24a..e47defa 100644 --- a/lib/scsi-command.c +++ b/lib/scsi-command.c @@ -744,14 +744,13 @@ unsigned char * iscsi_get_user_in_buffer(struct iscsi_context *iscsi, struct iscsi_in_pdu *in, uint32_t pos, ssize_t *count) { struct iscsi_pdu *pdu; - uint32_t len, offset; + uint32_t offset; uint32_t itt; if ((in->hdr[0] & 0x3f) != ISCSI_PDU_DATA_IN) { return NULL; } - len = ntohl(*(uint32_t *)&in->hdr[4])&0x00ffffff; offset = ntohl(*(uint32_t *)&in->hdr[40]); itt = ntohl(*(uint32_t *)&in->hdr[16]);