From d29b6e4f6318f2c2479b284e572f1c51db042754 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 10 Jul 2009 18:21:11 +0000 Subject: [PATCH] The patch below fixes the following checkpatch complaint: ERROR: return is not a function, parentheses are not required A side effect of this patch is that it makes sure that the return value of is_report_sg_limitation() is either 0 or 1, and no other integer value. Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@948 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index 951fcccc9..15a20617c 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -2262,7 +2262,7 @@ void scst_release_request(struct scst_cmd *cmd) static bool is_report_sg_limitation(void) { #if defined(CONFIG_SCST_DEBUG) || defined(CONFIG_SCST_TRACING) - return (trace_flag & TRACE_OUT_OF_MEM); + return (trace_flag & TRACE_OUT_OF_MEM) != 0; #else return false; #endif