clk: slightly optimize clk_core_set_parent()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 28 Dec 2015 10:23:10 +0000 (19:23 +0900)
committerStephen Boyd <sboyd@codeaurora.org>
Tue, 2 Feb 2016 19:53:17 +0000 (11:53 -0800)
commite8f0e68ec0802dc840e29e0fabdcfdc39aa2a8fb
tree642e0e96e88080f6121fe4f26a68d3f4b411a15a
parent470b5e2f97cf8fb6a8375cc59e86314c9dd354c2
clk: slightly optimize clk_core_set_parent()

If clk_fetch_parent_index() fails, p_rate is unused.  Move the
assignment after the error checking.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk.c