On 04/07/2011 11:35 AM, Mark Rustad wrote:
The variable len in iscsi_io_tcp_poll is initialized in its declaration, but
also initialized before use. Remove the initialization in the declaration.

Signed-off-by: Mark Rustad<mark.d.rus...@intel.com>
Tested-by: Ross Brattain<ross.b.bratt...@intel.com>
  usr/io.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/io.c b/usr/io.c
index 0c52a39..aa81941 100644
--- a/usr/io.c
+++ b/usr/io.c
@@ -436,7 +436,7 @@ iscsi_io_tcp_poll(iscsi_conn_t *conn, int timeout_ms)
        struct pollfd pdesc;
        char serv[NI_MAXSERV], lserv[NI_MAXSERV];
        struct sockaddr_storage ss;
-       socklen_t len = sizeof(ss);
+       socklen_t len;

        pdesc.fd = conn->socket_fd;
        pdesc.events = POLLOUT;

Thanks. Merged in commit 160dc094f1c4d8cccdc8717795cc0903c98741e4

You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to