Skip to content

Commit

Permalink
kernel: poll: fix coding guideline 15.7 missing comment
Browse files Browse the repository at this point in the history
The final else {} in the if...else if is missing required
comment (non-empty, ';' is not sufficient). This adds a comment
to comply with CG 15.7.

Signed-off-by: Jennifer Williams <jennifer.m.williams@intel.com>
  • Loading branch information
jenmwms authored and galak committed Jun 4, 2021
1 parent 9eab89f commit ae85da1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kernel/poll.c
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ static inline int register_events(struct k_poll_event *events,
register_event(&events[ii], poller);
events_registered += 1;
} else {
/* Event is not one of those identified in is_condition_met()
* catching non-polling events, or is marked for just check,
* or not marked for polling. No action needed.
*/
;
}
k_spin_unlock(&lock, key);
Expand Down Expand Up @@ -424,6 +428,7 @@ static int signal_poll_event(struct k_poll_event *event, uint32_t state)
} else if (poller->mode == MODE_TRIGGERED) {
retcode = signal_triggered_work(event, state);
} else {
/* Poller is not poll or triggered mode. No action needed.*/
;
}

Expand Down

0 comments on commit ae85da1

Please sign in to comment.