[OE-core] [PATCH 09/10] devtool: remove some unused return values

Markus Lehtonen markus.lehtonen at linux.intel.com
Thu Jun 4 16:31:53 UTC 2015


Signed-off-by: Markus Lehtonen <markus.lehtonen at linux.intel.com>
---
 scripts/devtool                 | 1 -
 scripts/lib/devtool/standard.py | 3 ---
 2 files changed, 4 deletions(-)

diff --git a/scripts/devtool b/scripts/devtool
index 0100eb8..307846a 100755
--- a/scripts/devtool
+++ b/scripts/devtool
@@ -157,7 +157,6 @@ def _enable_workspace_layer(workspacedir, config, basepath):
     bblayers_conf = os.path.join(basepath, 'conf', 'bblayers.conf')
     if not os.path.exists(bblayers_conf):
         logger.error('Unable to find bblayers.conf')
-        return -1
     _, added = bb.utils.edit_bblayers_conf(bblayers_conf, workspacedir, config.workspace_path)
     if added:
         logger.info('Enabling workspace layer in bblayers.conf')
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index 1665ca8..2c48d69 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -416,9 +416,6 @@ def _check_preserve(config, recipename):
                     tf.write(line)
     os.rename(newfile, origfile)
 
-    return False
-
-
 def modify(args, config, basepath, workspace):
     """Entry point for the devtool 'modify' subcommand"""
     import bb
-- 
2.1.4




More information about the Openembedded-core mailing list