[oe-commits] [openembedded-core] 12/20: meson: improve code style

git at git.openembedded.org git at git.openembedded.org
Mon Jul 9 21:57:10 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit b0ba144ae94b1e3670b3b662c5626c3952ea52fd
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Mon Jul 9 17:18:45 2018 +0100

    meson: improve code style
    
    Use elif for consistency.
    
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/meson.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/meson.bbclass b/meta/classes/meson.bbclass
index 4a54e9e..66c44e8 100644
--- a/meta/classes/meson.bbclass
+++ b/meta/classes/meson.bbclass
@@ -52,7 +52,7 @@ def meson_cpu_family(var, d):
     arch = d.getVar(var)
     if arch == 'powerpc':
         return 'ppc'
-    if arch == 'mipsel':
+    elif arch == 'mipsel':
         return 'mips'
     elif re.match(r"i[3-6]86", arch):
         return "x86"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list