]> code.ossystems Code Review - openembedded-core.git/commitdiff
devtool: remove some unused return values
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 27 May 2015 14:40:49 +0000 (17:40 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Jun 2015 08:12:00 +0000 (09:12 +0100)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
scripts/devtool
scripts/lib/devtool/standard.py

index 0100eb8360b05cd80c91f9d94a7eaed525189542..fd4af9838a9289e58d96f98b76458b2975531684 100755 (executable)
@@ -157,7 +157,7 @@ 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
+        return
     _, added = bb.utils.edit_bblayers_conf(bblayers_conf, workspacedir, config.workspace_path)
     if added:
         logger.info('Enabling workspace layer in bblayers.conf')
index fb3cc78de03c7527ddb34e5f3190a2b0994fa5af..14912a94547bf81fb6943c4d8edf74a4913db963 100644 (file)
@@ -417,9 +417,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