From 0bf5a3ca9268764387cc54239c9fc6881bf605e4 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Sat, 17 May 2014 00:18:42 +0000 Subject: [PATCH] scst_lib: Clarify scst_init_cmd() documentation The possible return values of scst_init_cmd() are -1, 0 and 1. Mention this in the comment header above that function. Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5523 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_targ.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index bde560fa3..98b11ddc9 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -294,8 +294,9 @@ out: EXPORT_SYMBOL(scst_rx_cmd); /* - * No locks, but might be on IRQ. Returns 0 on success, <0 if processing of - * this command should be stopped. + * No locks, but might be on IRQ. Returns: + * - < 0 if the caller must not perform any further processing of @cmd; + * - >= 0 if the caller must continue processing @cmd. */ static int scst_init_cmd(struct scst_cmd *cmd, enum scst_exec_context *context) {