From 257075d26610ba28491bd3f5b45bb93b8b963caa Mon Sep 17 00:00:00 2001 From: knakahara Date: Thu, 24 Dec 2015 03:41:03 +0000 Subject: [PATCH] fix amd64/conf/ALL build failure --- sys/dev/iscsi/iscsi_send.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/iscsi/iscsi_send.c b/sys/dev/iscsi/iscsi_send.c index f8cb77213a39..d805f4d1d2ce 100644 --- a/sys/dev/iscsi/iscsi_send.c +++ b/sys/dev/iscsi/iscsi_send.c @@ -1,4 +1,4 @@ -/* $NetBSD: iscsi_send.c,v 1.14 2015/05/30 18:09:31 joerg Exp $ */ +/* $NetBSD: iscsi_send.c,v 1.15 2015/12/24 03:41:03 knakahara Exp $ */ /*- * Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc. @@ -54,10 +54,12 @@ STATIC int my_soo_write(connection_t *conn, struct uio *u) { struct socket *so = conn->sock->f_socket; - size_t resid = u->uio_resid; int ret; +#ifdef ISCSI_DEBUG + size_t resid = u->uio_resid; assert(resid != 0); +#endif ret = sosend(so, NULL, u, NULL, NULL, 0, conn->threadobj);