summaryrefslogtreecommitdiffstats
path: root/Documentation/sphinx
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2016-06-08 09:25:40 +0200
committerJani Nikula <jani.nikula@intel.com>2016-06-10 10:29:21 +0200
commit057de5c4dd536bdf29275ec75910737087594860 (patch)
tree8e15ec83b611482f942c0e7888d3dcefa683eb84 /Documentation/sphinx
parentDocumentation/sphinx: remove unnecessary temporary variable (diff)
downloadlinux-057de5c4dd536bdf29275ec75910737087594860.tar.xz
linux-057de5c4dd536bdf29275ec75910737087594860.zip
Documentation/sphinx: use a more sensible string split in kernel-doc extension
Using the default str.split doesn't return empty strings like the current version does. Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Diffstat (limited to 'Documentation/sphinx')
-rw-r--r--Documentation/sphinx/kernel-doc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/sphinx/kernel-doc.py b/Documentation/sphinx/kernel-doc.py
index 2856376cc62c..d6a76f9a0ba5 100644
--- a/Documentation/sphinx/kernel-doc.py
+++ b/Documentation/sphinx/kernel-doc.py
@@ -68,7 +68,7 @@ class KernelDocDirective(Directive):
elif 'doc' in self.options:
cmd += ['-function', str(self.options.get('doc'))]
elif 'functions' in self.options:
- for f in str(self.options.get('functions')).split(' '):
+ for f in str(self.options.get('functions')).split():
cmd += ['-function', f]
cmd += [filename]