Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4cfe54e5 authored by Nestor Ovroy's avatar Nestor Ovroy Committed by Mike Turquette
Browse files

clk: Deduplicate exit code in clk_set_rate



On non-out case 'return ret;' is equivalent to 'return 0;' as the ret
variable is initialized at 0 and never changed.

Signed-off-by: default avatarNestor Ovroy <novroy@riseup.net>
parent 135a8297
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1093,9 +1093,6 @@ int clk_set_rate(struct clk *clk, unsigned long rate)
	/* change the rates */
	clk_change_rate(top);

	mutex_unlock(&prepare_lock);

	return 0;
out:
	mutex_unlock(&prepare_lock);