diff --git a/headers/private/fs_shell/SinglyLinkedList.h b/headers/private/fs_shell/SinglyLinkedList.h index 920b3c7e93..ccab8ac180 100644 --- a/headers/private/fs_shell/SinglyLinkedList.h +++ b/headers/private/fs_shell/SinglyLinkedList.h @@ -23,7 +23,7 @@ public: SinglyLinkedListLink() : next(NULL) {} ~SinglyLinkedListLink() {} - Element *next; + Element* next; }; // SinglyLinkedListLinkImpl @@ -180,8 +180,7 @@ void SINGLY_LINKED_LIST_CLASS_NAME::Add(Element* element) { if (element != NULL) { - Link* link = sGetLink(element); - link->next = fFirst; + sGetLink(element)->next = fFirst; fFirst = element; } } diff --git a/headers/private/kernel/util/SinglyLinkedList.h b/headers/private/kernel/util/SinglyLinkedList.h index a44d747a8f..8ac979dca9 100644 --- a/headers/private/kernel/util/SinglyLinkedList.h +++ b/headers/private/kernel/util/SinglyLinkedList.h @@ -17,7 +17,7 @@ public: SinglyLinkedListLink() : next(NULL) {} ~SinglyLinkedListLink() {} - Element *next; + Element* next; }; // SinglyLinkedListLinkImpl @@ -174,8 +174,7 @@ void SINGLY_LINKED_LIST_CLASS_NAME::Add(Element* element) { if (element != NULL) { - Link* link = sGetLink(element); - link->next = fFirst; + sGetLink(element)->next = fFirst; fFirst = element; } }