diff options
| author | Rob Herring <robh@kernel.org> | 2018-03-08 10:21:07 -0500 |
|---|---|---|
| committer | Rob Herring <robh@kernel.org> | 2018-03-08 10:21:07 -0500 |
| commit | c679fa6e3aaa5c58fc514b5b88cfa82774b8d390 (patch) | |
| tree | 0c10b339368bd1795152a66a4e245e6f654fb3ec /scripts/dtc/srcpos.c | |
| parent | bdb7013df910681f84eff27b07791d4c160cb76f (diff) | |
| parent | 4fd98e374fd377ae0458a9dc44aa779cf9631ddd (diff) | |
Merge branch 'dtc-update' into dt/next
Diffstat (limited to 'scripts/dtc/srcpos.c')
| -rw-r--r-- | scripts/dtc/srcpos.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/scripts/dtc/srcpos.c b/scripts/dtc/srcpos.c index 9d38459902f3..cb6ed0e3e5e4 100644 --- a/scripts/dtc/srcpos.c +++ b/scripts/dtc/srcpos.c | |||
| @@ -209,8 +209,6 @@ struct srcpos srcpos_empty = { | |||
| 209 | .file = NULL, | 209 | .file = NULL, |
| 210 | }; | 210 | }; |
| 211 | 211 | ||
| 212 | #define TAB_SIZE 8 | ||
| 213 | |||
| 214 | void srcpos_update(struct srcpos *pos, const char *text, int len) | 212 | void srcpos_update(struct srcpos *pos, const char *text, int len) |
| 215 | { | 213 | { |
| 216 | int i; | 214 | int i; |
| @@ -224,9 +222,6 @@ void srcpos_update(struct srcpos *pos, const char *text, int len) | |||
| 224 | if (text[i] == '\n') { | 222 | if (text[i] == '\n') { |
| 225 | current_srcfile->lineno++; | 223 | current_srcfile->lineno++; |
| 226 | current_srcfile->colno = 1; | 224 | current_srcfile->colno = 1; |
| 227 | } else if (text[i] == '\t') { | ||
| 228 | current_srcfile->colno = | ||
| 229 | ALIGN(current_srcfile->colno, TAB_SIZE); | ||
| 230 | } else { | 225 | } else { |
| 231 | current_srcfile->colno++; | 226 | current_srcfile->colno++; |
| 232 | } | 227 | } |
