diff options
author | Werner Zeh <werner.zeh@siemens.com> | 2019-03-12 07:11:11 +0100 |
---|---|---|
committer | Werner Zeh <werner.zeh@siemens.com> | 2019-03-14 07:48:06 +0000 |
commit | 1115f631dc9086639ca5f642daf6403f23a32549 (patch) | |
tree | d2ec7b8bf557a675c603aa4573a730491440597f /src/vendorcode/intel | |
parent | fedb36e3c849685e2dbf1b6feb2e936a559f9bfb (diff) |
commonlib/bubblesort: Do not try to sort less than two entries
Before start sorting check for the number of entries in the data set. If
there are less than two entries, sorting makes no sense.
Change-Id: Ib9d5522cdebb6559a025217f7faf318589d55a2c
Signed-off-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/31854
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/vendorcode/intel')
0 files changed, 0 insertions, 0 deletions