Skip to content
Commit 455280e5 authored by Benjamin Cabé's avatar Benjamin Cabé Committed by Dan Kalowsky
Browse files

lib: hex: remove unnecessary defensive programming



The hex2char() calls in bin2hex() can never fail since buf[i] >> 4
and buf[i] & 0xf always produce values in range 0-15.

Signed-off-by: default avatarBenjamin Cabé <benjamin@zephyrproject.org>
parent 332d8b37
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment