Fix for warning: 'res' may be used uninitialized in this function
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 23 Nov 2009 18:43:03 +0000 (18:43 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Mon, 23 Nov 2009 18:43:03 +0000 (18:43 +0000)
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1358 d57e44dd-8a1f-0410-8b47-8ef2f437770f

iscsi-scst/kernel/nthread.c

index 8b09985..9d10b93 100644 (file)
@@ -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);