Skip to content

Commit 1bd8e27

Browse files
claudiubezneabebarino
authored andcommitted
clk: at91: clk-sam9x60-pll: fix return value check
sam9x60_frac_pll_compute_mul_frac() can't return zero. Remove the check against zero to reflect this. Fixes: 43b1bb4 ("clk: at91: clk-sam9x60-pll: re-factor to support plls with multiple outputs") Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Claudiu Beznea <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 7e626a0 commit 1bd8e27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/at91/clk-sam9x60-pll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ sam9x60_clk_register_frac_pll(struct regmap *regmap, spinlock_t *lock,
668668

669669
ret = sam9x60_frac_pll_compute_mul_frac(&frac->core, FCORE_MIN,
670670
parent_rate, true);
671-
if (ret <= 0) {
671+
if (ret < 0) {
672672
hw = ERR_PTR(ret);
673673
goto free;
674674
}

0 commit comments

Comments
 (0)