Skip to content
Commit 5eaace1c authored by Riadh Ghaddab's avatar Riadh Ghaddab Committed by Carles Cufí
Browse files

ipc_service: static_vrings: fix num_desc return value



currently when no enough memory is found a (1 << (-1)) value is returned
instead of 0.
Fix this by returning 0 and simplify log2 computation

Signed-off-by: default avatarRiadh Ghaddab <rghaddab@baylibre.com>
parent cb69a0a3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment