mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 03:31:26 +00:00
scst_check_auto_sense(): Change return typefrom int to bool
Signed-off-by: Bart Van Assche <bvanassche@acm.org> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4252 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2996,9 +2996,9 @@ out:
|
||||
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 @@ static int scst_check_auto_sense(struct scst_cmd *cmd)
|
||||
"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) ||
|
||||
|
||||
Reference in New Issue
Block a user