From 78ec60df89828301c955d68f8cea537107cec85e Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 23 Nov 2009 18:43:03 +0000 Subject: [PATCH] Fix for warning: 'res' may be used uninitialized in this function git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1358 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/nthread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/iscsi-scst/kernel/nthread.c b/iscsi-scst/kernel/nthread.c index 8b09985e5..9d10b9330 100644 --- a/iscsi-scst/kernel/nthread.c +++ b/iscsi-scst/kernel/nthread.c @@ -847,6 +847,7 @@ static void process_read_io(struct iscsi_conn *conn, int *closed) break; case RX_END: + res = 0; if (unlikely(conn->read_size != 0)) { PRINT_CRIT_ERROR("%d %x %d", res, cmnd_opcode(cmnd), conn->read_size);