From 3d98a7174e9a4ad479280442fd74c5592e80307b Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 23 Feb 2020 17:29:26 +0000 Subject: [PATCH] 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 --- scst/src/scst_local_cmd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scst/src/scst_local_cmd.c b/scst/src/scst_local_cmd.c index 72826f61e..2abea3b0b 100644 --- a/scst/src/scst_local_cmd.c +++ b/scst/src/scst_local_cmd.c @@ -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;