Skip to content
Commit 97c29755 authored by Yang Li's avatar Yang Li Committed by Geert Uytterhoeven
Browse files

clk: renesas: rzg2l: Fix return value and unused assignment



Currently the function returns NULL on error, so exact error code is
lost.  This patch changes return convention of the function to use
ERR_PTR() on error instead.

Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarYang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/1623896524-102058-1-git-send-email-yang.lee@linux.alibaba.com


[geert: Drop curly braces]
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
parent d42d57fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment