mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 05:36:22 +00:00
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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user