X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fiscsi%2Fsocket.c;h=430be7211599c6ef65756c71d1b55c70e01585da;hp=f79b31692b764dffb3e5136e1a1fb504a15c3c30;hb=291237b4fed863be74051274ac5ad9920cb33cc3;hpb=c4f43d26dc6bca9f41ac73e088ba016d0a4861d2;ds=inline diff --git a/ccan/iscsi/socket.c b/ccan/iscsi/socket.c index f79b3169..430be721 100644 --- a/ccan/iscsi/socket.c +++ b/ccan/iscsi/socket.c @@ -45,7 +45,6 @@ static void set_nonblocking(int fd) int iscsi_connect_async(struct iscsi_context *iscsi, const char *target, iscsi_command_cb cb, void *private_data) { - int tpgt = -1; int port = 3260; char *str; char *addr; @@ -73,7 +72,6 @@ int iscsi_connect_async(struct iscsi_context *iscsi, const char *target, iscsi_c /* check if we have a target portal group tag */ if ((str = rindex(addr, ',')) != NULL) { - tpgt = atoi(str+1); str[0] = 0; }