From e515f17629ed528c8eb1703702d655b0dd50e614 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Mon, 27 Aug 2012 21:58:49 +0000 Subject: [PATCH] scst: Avoid that smatch complains about dead code Reported by Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4488 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_targ.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index 55dd09990..e277909e4 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -4780,12 +4780,13 @@ static inline int scst_is_strict_mgmt_fn(int mgmt_fn) switch (mgmt_fn) { #ifdef CONFIG_SCST_ABORT_CONSIDER_FINISHED_TASKS_AS_NOT_EXISTING case SCST_ABORT_TASK: + return 1; #endif #if 0 case SCST_ABORT_TASK_SET: case SCST_CLEAR_TASK_SET: -#endif return 1; +#endif default: return 0; }