mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 12:41:26 +00:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user