From 50848fb0c415625cde423f0c2b4c7eb389aab8ff Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 2 Oct 2015 16:10:35 +0000 Subject: [PATCH] scst.h: Do not surround return statement expressions with parentheses This avoids that checkpatch reports "return is not a function". git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6528 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scst/include/scst.h b/scst/include/scst.h index 0d19a44c3..b86f566e3 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -885,7 +885,7 @@ enum scst_dif_actions { /* Returns DIF checks by stripping the action part from a */ static inline enum scst_dif_actions scst_get_dif_checks(enum scst_dif_actions a) { - return (a & SCST_DIF_CHECKS_MASK); + return a & SCST_DIF_CHECKS_MASK; } /* Sets the DIF checks part in a */ @@ -900,7 +900,7 @@ static inline void scst_set_dif_checks(enum scst_dif_actions *a, /* Returns DIF action by stripping the checks part from a */ static inline enum scst_dif_actions scst_get_dif_action(enum scst_dif_actions a) { - return (a & SCST_DIF_ACTION_MASK); + return a & SCST_DIF_ACTION_MASK; } /* Sets the DIF action part in a */