This patch tests the return code when calling clock_control_get_rate and completes the issue #20503 seen on watchdog [Coverity CID :205655] Fixes #20503 Signed-off-by: Francois Ramu <francois.ramu@st.com>