Skip to content

Commit

Permalink
Merge branch 'devel'
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-cao committed Sep 11, 2023
2 parents 1ed0757 + 6c571af commit 4abd764
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -796,9 +796,6 @@ static int get_events(struct switchtec_dev *dev,
break;
}

if (!show_all && e->partition != local_part)
continue;

if (clear_all || event_id & (1 << e->eid))
flags = SWITCHTEC_EVT_FLAG_CLEAR;
else
Expand All @@ -810,6 +807,9 @@ static int get_events(struct switchtec_dev *dev,
return -1;
}

if (!show_all && e->partition != local_part)
continue;

e->count = ret;
e++;
if (e - elist > elist_len)
Expand Down

0 comments on commit 4abd764

Please sign in to comment.