Skip to content
Commit 2227f4c0 authored by Sam Protsenko's avatar Sam Protsenko Committed by Minkyu Kang
Browse files

serial: s5p: Fix clk_get_by_index() error code check



clk_get_by_index() returns negative number on error. Assigning it to
unsigned int makes the subsequent "ret < 0" check always false, leading
in turn to possible unhandled errors. Change 'ret' variable type to
signed int so the code checks and handles clk_get_by_index() return code
properly.

Signed-off-by: default avatarSam Protsenko <semen.protsenko@linaro.org>
Fixes: cf75cdf9 ("serial: s5p: use clock api to get clock rate")
Signed-off-by: default avatarMinkyu Kang <mk7.kang@samsung.com>
parent 08cfa971
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment