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; -- 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 open-iscsi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/open-iscsi?hl=en.