Changeset 671 for trunk/kernel/libk/list.h
- Timestamp:
- Nov 19, 2020, 11:47:00 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/list.h
r656 r671 3 3 * 4 4 * Authors Ghassan Almaless (2008,2009,2010,2011,2012) 5 * Alain Greiner (2016,2017,2018,2019 )5 * Alain Greiner (2016,2017,2018,2019,2020) 6 6 * 7 7 * Copyright (c) UPMC Sorbonne Universites … … 219 219 static inline void list_unlink( list_entry_t * entry ) 220 220 { 221 list_entry_t * pred; 222 list_entry_t * next; 223 224 pred = entry->pred; 225 next = entry->next; 221 list_entry_t * pred = entry->pred; 222 list_entry_t * next = entry->next; 226 223 227 224 pred->next = next; 228 225 next->pred = pred; 226 227 entry->next = NULL; 228 entry->pred = NULL; 229 229 } 230 230 … … 406 406 list_entry_t * entry ) 407 407 { 408 list_entry_t * pred; 409 list_entry_t * next; 410 411 pred = hal_remote_lpt( XPTR( cxy , &entry->pred ) ); 412 next = hal_remote_lpt( XPTR( cxy , &entry->next ) ); 408 list_entry_t * pred = hal_remote_lpt( XPTR( cxy , &entry->pred ) ); 409 list_entry_t * next = hal_remote_lpt( XPTR( cxy , &entry->next ) ); 413 410 414 411 hal_remote_spt( XPTR( cxy , &pred->next ) , next ); 415 412 hal_remote_spt( XPTR( cxy , &next->pred ) , pred ); 413 414 hal_remote_spt( XPTR( cxy , &entry->next ) , NULL ); 415 hal_remote_spt( XPTR( cxy , &entry->pred ) , NULL ); 416 416 } 417 417
Note: See TracChangeset
for help on using the changeset viewer.