]> code.ossystems Code Review - openembedded-core.git/commit
kernel-yocto: remove redundant SRCREV check
authorBruce Ashfield <bruce.ashfield@windriver.com>
Mon, 17 Mar 2014 14:59:16 +0000 (10:59 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 1 Sep 2014 13:34:25 +0000 (14:34 +0100)
commit05508339882c7cc1fe3f1f67f72314fdcab979b7
tree2526fdff1f68e321980cc55cb4bc81a867b591d6
parenta57b24f848a7cb89cf57830e07682224f8bbc96f
kernel-yocto: remove redundant SRCREV check

do_validate_branches checks to ensure that a valid machine SRCREV was
set. A test against an empty SRCREV is done in two separate locations,
we only need one, since the first check immediately returns and the
second check never hits.

At the same time, we can stop referring to the same commit hash by
3 different names. Instead we assign to a local variable at the
top of the routine, and refer to it at all times.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
meta/classes/kernel-yocto.bbclass