aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2016-06-08 06:38:28 -0400
committerJani Nikula <jani.nikula@intel.com>2016-06-10 04:29:20 -0400
commit06173fe33a3fd239540bd188f1f12a39e99b6c83 (patch)
tree5a771fe847fb1c3ecbf26d927d8feef8a5e1018c
parentc9b2cfb3faece55df7f50b4ab76bc00ac8e06700 (diff)
Documentation/sphinx: remove unnecessary temporary variable
Leftover cruft. No functional changes. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
-rw-r--r--Documentation/sphinx/kernel-doc.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Documentation/sphinx/kernel-doc.py b/Documentation/sphinx/kernel-doc.py
index 4adfb0e91ecc..2856376cc62c 100644
--- a/Documentation/sphinx/kernel-doc.py
+++ b/Documentation/sphinx/kernel-doc.py
@@ -59,7 +59,6 @@ class KernelDocDirective(Directive):
59 env.note_dependency(os.path.abspath(filename)) 59 env.note_dependency(os.path.abspath(filename))
60 60
61 tab_width = self.options.get('tab-width', self.state.document.settings.tab_width) 61 tab_width = self.options.get('tab-width', self.state.document.settings.tab_width)
62 source = filename
63 62
64 # FIXME: make this nicer and more robust against errors 63 # FIXME: make this nicer and more robust against errors
65 if 'export' in self.options: 64 if 'export' in self.options:
@@ -105,7 +104,7 @@ class KernelDocDirective(Directive):
105 lineoffset = int(match.group(1)) - 1 104 lineoffset = int(match.group(1)) - 1
106 # we must eat our comments since the upset the markup 105 # we must eat our comments since the upset the markup
107 else: 106 else:
108 result.append(line, source, lineoffset) 107 result.append(line, filename, lineoffset)
109 lineoffset += 1 108 lineoffset += 1
110 109
111 node = nodes.section() 110 node = nodes.section()