Commit 6f5f92c60b7cc86bcfbd4acd310c5efbb6b68a8f
Committed by
Tom Rini
1 parent
57c7809ab0
Exists in
v2017.01-smarct4x
and in
28 other branches
libfdt: Fix separator spelling
The function fdt_path_next_seperator had an obvious mispell. Fix it. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Showing 1 changed file with 4 additions and 4 deletions Side-by-side Diff
lib/libfdt/fdt_ro.c
| ... | ... | @@ -140,12 +140,12 @@ |
| 140 | 140 | } |
| 141 | 141 | |
| 142 | 142 | /* |
| 143 | - * Find the next of path seperator, note we need to search for both '/' and ':' | |
| 143 | + * Find the next of path separator, note we need to search for both '/' and ':' | |
| 144 | 144 | * and then take the first one so that we do the right thing for e.g. |
| 145 | 145 | * "foo/bar:option" and "bar:option/otheroption", both of which happen, so |
| 146 | 146 | * first searching for either ':' or '/' does not work. |
| 147 | 147 | */ |
| 148 | -static const char *fdt_path_next_seperator(const char *path) | |
| 148 | +static const char *fdt_path_next_separator(const char *path) | |
| 149 | 149 | { |
| 150 | 150 | const char *sep1 = strchr(path, '/'); |
| 151 | 151 | const char *sep2 = strchr(path, ':'); |
| ... | ... | @@ -168,7 +168,7 @@ |
| 168 | 168 | |
| 169 | 169 | /* see if we have an alias */ |
| 170 | 170 | if (*path != '/') { |
| 171 | - const char *q = fdt_path_next_seperator(path); | |
| 171 | + const char *q = fdt_path_next_separator(path); | |
| 172 | 172 | |
| 173 | 173 | if (!q) |
| 174 | 174 | q = end; |
| ... | ... | @@ -188,7 +188,7 @@ |
| 188 | 188 | p++; |
| 189 | 189 | if (*p == '\0' || *p == ':') |
| 190 | 190 | return offset; |
| 191 | - q = fdt_path_next_seperator(p); | |
| 191 | + q = fdt_path_next_separator(p); | |
| 192 | 192 | if (!q) |
| 193 | 193 | q = end; |
| 194 | 194 |