mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 06:06:23 +00:00
scst_tg: Suppress a smatch complaint
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6598 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1687,7 +1687,13 @@ int scst_tg_set_group_info(struct scst_cmd *cmd)
|
||||
TRACE_DBG("dg %s (%p) found, dev %s", dg->name, dg, dev->virt_name);
|
||||
|
||||
for (i = 4, j = 0; i + 4 <= len; i += 4, j++) {
|
||||
#ifndef __CHECKER__
|
||||
/*
|
||||
* Hide the statement below for smatch because otherwise it
|
||||
* triggers a false positive.
|
||||
*/
|
||||
WARN_ON_ONCE(j >= tpg_desc_count);
|
||||
#endif
|
||||
osi[j].new_state = buf[i] & 0x1f;
|
||||
switch (osi[j].new_state) {
|
||||
case SCST_TG_STATE_OPTIMIZED:
|
||||
|
||||
Reference in New Issue
Block a user