mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 17:36:15 +08:00
committed by
Joel Sherrill
parent
fc29c5d1e8
commit
9aa0c138b6
@@ -254,6 +254,10 @@ static int rtems_fdt_index_find_by_name(
|
||||
size_t namelen = strlen( name );
|
||||
if ( namelen > 0 && name[ namelen - 1 ] == '/' ) {
|
||||
namelen--;
|
||||
/* handle the root node */
|
||||
if ( namelen == 0 ) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Binary search for the name. */
|
||||
|
||||
Reference in New Issue
Block a user