From 610ec9cb10765a114a67f37da3eda7878c4a7638 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 27 Mar 2014 08:34:27 +0000 Subject: [PATCH] Avoid that checkpatch complains that return is not a function Avoid that checkpatch reports the following error message: ERROR: return is not a function, parentheses are not required git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5398 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst_const.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scst/include/scst_const.h b/scst/include/scst_const.h index b9a6b0e38..06bf7e923 100644 --- a/scst/include/scst_const.h +++ b/scst/include/scst_const.h @@ -264,12 +264,12 @@ enum scst_cdb_flags { static inline int scst_sense_valid(const uint8_t *sense) { - return ((sense != NULL) && ((sense[0] & 0x70) == 0x70)); + return (sense != NULL) && ((sense[0] & 0x70) == 0x70); } static inline int scst_no_sense(const uint8_t *sense) { - return ((sense != NULL) && (sense[2] == 0)); + return (sense != NULL) && (sense[2] == 0); } static inline int scst_sense_response_code(const uint8_t *sense)