Commit 7071ff32 authored by Blue Swirl's avatar Blue Swirl
Browse files

slirp: remove dead initialization, spotted by clang



Value stored during initialization is never read.

Signed-off-by: default avatarBlue Swirl <blauwirbel@gmail.com>
parent 369c86e7
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -90,8 +90,6 @@ size_t sopreprbuf(struct socket *so, struct iovec *iov, int *np)
	DEBUG_CALL("sopreprbuf");
	DEBUG_ARG("so = %lx", (long )so);

	len = sb->sb_datalen - sb->sb_cc;

	if (len <= 0)
		return 0;

@@ -363,8 +361,6 @@ sowrite(struct socket *so)
	 * sowrite wouldn't have been called otherwise
	 */

        len = sb->sb_cc;

	iov[0].iov_base = sb->sb_rptr;
        iov[1].iov_base = NULL;
        iov[1].iov_len = 0;