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 <bart.vanassche@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@948 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2009-07-10 18:21:11 +00:00
parent e564749845
commit d29b6e4f63
+1 -1
View File
@@ -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