diff options
Diffstat (limited to 'common')
| -rw-r--r-- | common/fdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/fdt.c b/common/fdt.c index 356c669..3f20d72 100644 --- a/common/fdt.c +++ b/common/fdt.c @@ -22,7 +22,7 @@ struct cell_info get_reginfo(const void *fdt, const char *path) return (struct cell_info){ 0, 0 }; size_t baselen = i - path; - if (i == 0) + if (baselen == 0) /* root node */ baselen = 1; |
