Re: [RESEND PATCH v2 16/16] clk: slightly optimize clk_core_set_parent()

2016-02-01 Thread Stephen Boyd
On 12/28, Masahiro Yamada wrote: > If clk_fetch_parent_index() fails, p_rate is unused. Move the > assignment after the error checking. > > Signed-off-by: Masahiro Yamada > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation

Re: [RESEND PATCH v2 16/16] clk: slightly optimize clk_core_set_parent()

2016-02-01 Thread Stephen Boyd
On 12/28, Masahiro Yamada wrote: > If clk_fetch_parent_index() fails, p_rate is unused. Move the > assignment after the error checking. > > Signed-off-by: Masahiro Yamada > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora

[RESEND PATCH v2 16/16] clk: slightly optimize clk_core_set_parent()

2015-12-28 Thread Masahiro Yamada
If clk_fetch_parent_index() fails, p_rate is unused. Move the assignment after the error checking. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/clk/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index

[PATCH v2 16/16] clk: slightly optimize clk_core_set_parent()

2015-12-28 Thread Masahiro Yamada
If clk_fetch_parent_index() fails, p_rate is unused. Move the assignment after the error checking. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/clk/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index

[PATCH v2 16/16] clk: slightly optimize clk_core_set_parent()

2015-12-28 Thread Masahiro Yamada
If clk_fetch_parent_index() fails, p_rate is unused. Move the assignment after the error checking. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/clk/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk.c

[RESEND PATCH v2 16/16] clk: slightly optimize clk_core_set_parent()

2015-12-28 Thread Masahiro Yamada
If clk_fetch_parent_index() fails, p_rate is unused. Move the assignment after the error checking. Signed-off-by: Masahiro Yamada --- Changes in v2: None drivers/clk/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk.c