]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
insane: Remove redundant returns
authorOla x Nilsson <olani@axis.com>
Fri, 30 Aug 2024 07:27:24 +0000 (09:27 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 1 Sep 2024 07:19:12 +0000 (08:19 +0100)
Some redundant return statements were left over from
insane: Drop oe.qa.add_message usage

Signed-off-by: Ola x Nilsson <olani@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/insane.bbclass

index 32adcc722b3b0e4e0c452e05948d43225e898b9b..d7aba89b494c67e7420da5d848b569a581d82440 100644 (file)
@@ -113,7 +113,6 @@ def package_qa_check_libexec(path,name, d, elf):
 
     if 'libexec' in path.split(os.path.sep):
         oe.qa.handle_error("libexec", "%s: %s is using libexec please relocate to %s" % (name, package_qa_clean_path(path, d, name), libexec), d)
-        return
 
 QAPATHTEST[rpaths] = "package_qa_check_rpath"
 def package_qa_check_rpath(file,name, d, elf):
@@ -932,7 +931,6 @@ def package_qa_check_deps(pkg, pkgdest, d):
 
 QAPKGTEST[usrmerge] = "package_qa_check_usrmerge"
 def package_qa_check_usrmerge(pkg, d):
-
     pkgdest = d.getVar('PKGDEST')
     pkg_dir = pkgdest + os.sep + pkg + os.sep
     merged_dirs = ['bin', 'sbin', 'lib'] + d.getVar('MULTILIB_VARIANTS').split()
@@ -941,7 +939,6 @@ def package_qa_check_usrmerge(pkg, d):
             msg = "%s package is not obeying usrmerge distro feature. /%s should be relocated to /usr." % (pkg, f)
             oe.qa.handle_error("usrmerge", msg, d)
             return
-    return
 
 QAPKGTEST[perllocalpod] = "package_qa_check_perllocalpod"
 def package_qa_check_perllocalpod(pkg, d):