From ec5adf6e1ae9a43f61304fb421884acc4e3a4e5e Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 30 Apr 2012 19:31:13 +0000 Subject: [PATCH] scst_check_auto_sense(): Change return typefrom int to bool Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4252 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_targ.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index 3ffbba656..b553ae7c2 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -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) ||