mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-23 21:51:27 +00:00
scst_sysfs: Fix a smatch warning
Avoid that smatch complains about using a variable before a NULL test. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7913 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -4359,8 +4359,10 @@ static ssize_t scst_sess_latency_show(struct kobject *kobj,
|
||||
for (k = 0; k < SCST_CMD_STATE_COUNT; k++) {
|
||||
struct scst_lat_stats *lat_stats = sess->lat_stats;
|
||||
|
||||
if (!lat_stats || res >= PAGE_SIZE)
|
||||
continue;
|
||||
d = &lat_stats->ls[i][j][k];
|
||||
if (!lat_stats || d->count == 0 || res >= PAGE_SIZE)
|
||||
if (d->count == 0)
|
||||
continue;
|
||||
scst_get_cmd_state_name(state_name, sizeof(state_name),
|
||||
k);
|
||||
|
||||
Reference in New Issue
Block a user