Bluetooth: controller: Fix return type in hal/rand.c

Fix incorrect return data type, which causes controller to
hang generating random numbers.

Fixes bug introduced in commit d90095b556 ("Bluetooth:
controller: Use random numbers in adv and enc setup")

Signed-off-by: Vinayak Kariappa Chettimada <vich@nordicsemi.no>
This commit is contained in:
Vinayak Kariappa Chettimada 2017-08-08 14:59:15 +02:00 committed by Johan Hedberg
commit dc1dad34f3

View file

@ -143,7 +143,7 @@ void isr_rand(void *param)
ARG_UNUSED(param);
if (NRF_RNG->EVENTS_VALRDY) {
u8_t ret;
int ret;
ret = isr(rng_isr, true);
if (ret != -EBUSY) {