mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 22:26:55 +00:00
Documentation/sphinx: remove unnecessary temporary variable
Leftover cruft. No functional changes. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
c9b2cfb3fa
commit
06173fe33a
1 changed files with 1 additions and 2 deletions
|
@ -59,7 +59,6 @@ class KernelDocDirective(Directive):
|
|||
env.note_dependency(os.path.abspath(filename))
|
||||
|
||||
tab_width = self.options.get('tab-width', self.state.document.settings.tab_width)
|
||||
source = filename
|
||||
|
||||
# FIXME: make this nicer and more robust against errors
|
||||
if 'export' in self.options:
|
||||
|
@ -105,7 +104,7 @@ class KernelDocDirective(Directive):
|
|||
lineoffset = int(match.group(1)) - 1
|
||||
# we must eat our comments since the upset the markup
|
||||
else:
|
||||
result.append(line, source, lineoffset)
|
||||
result.append(line, filename, lineoffset)
|
||||
lineoffset += 1
|
||||
|
||||
node = nodes.section()
|
||||
|
|
Loading…
Reference in a new issue