Skip to content

Commit

Permalink
Merge branch 'events' into devel
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-cao committed Sep 11, 2023
2 parents 1ed0757 + 52b620a commit 6c571af
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 6c571af

Please sign in to comment.