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:35:39 +0000 (14:35 +0100)
commitdb7d10bea10ce39170a7b13914a7d94869d5e1e0
treea2395e0de56b4fec7e4d036e000eb0a98a5c11b1
parent4657ae75a1cc1bc80bc5678966fbbbe144bb11ca
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.

(From OE-Core rev: 05508339882c7cc1fe3f1f67f72314fdcab979b7)

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-yocto.bbclass