From 114c81390f4fc09cebfc43ce4b56530801be6b39 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sat, 31 Dec 2011 10:29:41 +1100 Subject: [PATCH] Remove unused variable --- lib/socket.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/socket.c b/lib/socket.c index ee46991..63f92fa 100644 --- a/lib/socket.c +++ b/lib/socket.c @@ -60,7 +60,6 @@ int iscsi_connect_async(struct iscsi_context *iscsi, const char *portal, iscsi_command_cb cb, void *private_data) { - int tpgt = -1; int port = 3260; char *str; char *addr, *host; @@ -84,7 +83,6 @@ iscsi_connect_async(struct iscsi_context *iscsi, const char *portal, /* check if we have a target portal group tag */ str = strrchr(host, ','); if (str != NULL) { - tpgt = atoi(str+1); str[0] = 0; }