summaryrefslogtreecommitdiff
path: root/tests/Kuserfunctions
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2019-12-22 08:13:02 +0100
committerUlf Magnusson <ulfalizer@gmail.com>2019-12-22 08:54:50 +0100
commit1e3926e5c65e4e01b22f9b1198caa1ae31e44c42 (patch)
treef17d16ad8b49bc57b1230bf91c0e2161439f292f /tests/Kuserfunctions
parent87fab023d0121a9f27f0af8de85cedc6978af6cb (diff)
Remove redundant 'node.next = None' assignment for the last node in a file
A node already gets its .next pointer set in _parse_block() if it is either 1. followed by another node, or 2. the last node in a menu, choice, or if. This also works for nodes from 'source'd files, so there's no need to special-case the ends of them. Remove the 'node.next = None' assignment for ends of files. Instead, special-case just the last node in all files, and set its .next to None in Kconfig._init(). Unlikely to give a noticeable performance improvement. Just tightens up the chaining logic a bit.
Diffstat (limited to 'tests/Kuserfunctions')
0 files changed, 0 insertions, 0 deletions