scst: Use enum scst_exec_res where appropriate

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8769 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2020-02-23 17:29:26 +00:00
parent 40b4dfd289
commit 3d98a7174e

View File

@@ -253,9 +253,9 @@ out_unlock_put_not_completed:
goto out;
}
static int scst_report_supported_tm_fns(struct scst_cmd *cmd)
static enum scst_exec_res scst_report_supported_tm_fns(struct scst_cmd *cmd)
{
int res = SCST_EXEC_COMPLETED;
const enum scst_exec_res res = SCST_EXEC_COMPLETED;
int length, resp_len = 0;
uint8_t *address;
uint8_t buf[16];
@@ -302,9 +302,9 @@ out_compl:
return res;
}
static int scst_report_supported_opcodes(struct scst_cmd *cmd)
static enum scst_exec_res scst_report_supported_opcodes(struct scst_cmd *cmd)
{
int res = SCST_EXEC_COMPLETED;
const enum scst_exec_res res = SCST_EXEC_COMPLETED;
int length, buf_len, i, offs;
uint8_t *address;
uint8_t *buf;