|
From: <vl...@us...> - 2012-04-30 19:31:19
|
Revision: 4252
http://scst.svn.sourceforge.net/scst/?rev=4252&view=rev
Author: vlnb
Date: 2012-04-30 19:31:13 +0000 (Mon, 30 Apr 2012)
Log Message:
-----------
scst_check_auto_sense(): Change return typefrom int to bool
Signed-off-by: Bart Van Assche <bva...@ac...>
Modified Paths:
--------------
trunk/scst/src/scst_targ.c
Modified: trunk/scst/src/scst_targ.c
===================================================================
--- trunk/scst/src/scst_targ.c 2012-04-30 19:29:47 UTC (rev 4251)
+++ trunk/scst/src/scst_targ.c 2012-04-30 19:31:13 UTC (rev 4252)
@@ -2996,9 +2996,9 @@
return res;
}
-static int scst_check_auto_sense(struct scst_cmd *cmd)
+static bool scst_check_auto_sense(struct scst_cmd *cmd)
{
- int res = 0;
+ bool res = false;
TRACE_ENTRY();
@@ -3010,7 +3010,7 @@
"cmd->host_status=%x, cmd->driver_status=%x (cmd %p)",
cmd->status, cmd->msg_status, cmd->host_status,
cmd->driver_status, cmd);
- res = 1;
+ res = true;
} else if (unlikely(cmd->host_status)) {
if ((cmd->host_status == DID_REQUEUE) ||
(cmd->host_status == DID_IMM_RETRY) ||
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|