|
From: <bva...@us...> - 2015-06-17 00:06:20
|
Revision: 6360
http://sourceforge.net/p/scst/svn/6360
Author: bvassche
Date: 2015-06-17 00:06:18 +0000 (Wed, 17 Jun 2015)
Log Message:
-----------
scst_targ: Remove dead code
Detected by Coverity.
Modified Paths:
--------------
trunk/scst/src/scst_targ.c
Modified: trunk/scst/src/scst_targ.c
===================================================================
--- trunk/scst/src/scst_targ.c 2015-06-17 00:05:29 UTC (rev 6359)
+++ trunk/scst/src/scst_targ.c 2015-06-17 00:06:18 UTC (rev 6360)
@@ -3239,7 +3239,6 @@
{
struct scst_cmd *cmd = *active_cmd;
struct scst_cmd *ref_cmd;
- int count = 0;
TRACE_ENTRY();
@@ -3300,8 +3299,6 @@
sBUG_ON(rc != SCST_EXEC_COMPLETED);
done:
- count++;
-
cmd = scst_post_exec_sn(cmd, false);
if (cmd == NULL)
break;
@@ -3320,15 +3317,11 @@
*active_cmd = cmd;
- if (count == 0)
- goto out_put;
-
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39)
if (ref_cmd->dev->scsi_dev != NULL)
generic_unplug_device(ref_cmd->dev->scsi_dev->request_queue);
#endif
-out_put:
__scst_cmd_put(ref_cmd);
/* !! At this point sess, dev and tgt_dev can be already freed !! */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|