minor simplification of a reused expression

pull/467/merge
Rohit Grover 2014-08-27 09:00:59 +01:00
parent a5ac14aab0
commit ab17cc71dc
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ void us_ticker_remove_event(ticker_event_t *obj) {
if (head == obj) {
// first in the list, so just drop me
head = obj->next;
if (obj->next == NULL) {
if (head == NULL) {
us_ticker_disable_interrupt();
} else {
us_ticker_set_interrupt(head->timestamp);