diff options
author | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-03-17 10:59:16 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-01 14:35:39 +0100 |
commit | 6b294a048901f347337cac69dd63b3381a061470 (patch) | |
tree | 2e94bf024020bfea1025da43cf8ec7b33387ccba /oe-init-build-env-memres | |
parent | 50a8400b725efd32549ccd36a2365da0edf37ef0 (diff) | |
download | poky-6b294a048901f347337cac69dd63b3381a061470.tar.gz |
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>
Diffstat (limited to 'oe-init-build-env-memres')
0 files changed, 0 insertions, 0 deletions