summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-06-09 12:57:12 +0200
committerPatrick Georgi <pgeorgi@google.com>2019-06-21 08:31:19 +0000
commit77b3a91bba5c9a0f5dd3144b38ba5308971103ec (patch)
tree5f154c49727e71e52efb9622cb1b7de0fe38fe39 /src
parent698d83a7c8a93b347c03ff31362866e7a0f92cb7 (diff)
downloadcoreboot-77b3a91bba5c9a0f5dd3144b38ba5308971103ec.tar.gz
coreboot-77b3a91bba5c9a0f5dd3144b38ba5308971103ec.tar.bz2
coreboot-77b3a91bba5c9a0f5dd3144b38ba5308971103ec.zip
arch/x86/rdrand.c: Remove unneeded 'else'
'else' is not needed after a 'break' or 'return'. Change-Id: Ib7bdefb0027a35de42f6a665b98f9e5a2791061f Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33331 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Vlado Cibic Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/rdrand.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/arch/x86/rdrand.c b/src/arch/x86/rdrand.c
index 35aac710a862..c9090df1fdf1 100644
--- a/src/arch/x86/rdrand.c
+++ b/src/arch/x86/rdrand.c
@@ -75,7 +75,6 @@ int get_random_number_64(uint64_t *rand)
#if ENV_X86_64
if (rdrand_64(rand))
return 0;
- else
#endif
if (rdrand_32(&rand_high) && rdrand_32(&rand_low)) {
*rand = ((uint64_t)rand_high << 32) |