All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] clk: at91: remove redundant assignment
@ 2014-02-06 18:53 Colin King
  2014-02-07 10:02 ` Nicolas Ferre
  0 siblings, 1 reply; 3+ messages in thread
From: Colin King @ 2014-02-06 18:53 UTC (permalink / raw)
  To: linux-arm-kernel

From: Colin Ian King <colin.king@canonical.com>

remove the redundant shift = shift assignment, it is extraneous.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/clk/at91/clk-programmable.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clk/at91/clk-programmable.c b/drivers/clk/at91/clk-programmable.c
index fd792b2..ff86efe 100644
--- a/drivers/clk/at91/clk-programmable.c
+++ b/drivers/clk/at91/clk-programmable.c
@@ -109,7 +109,7 @@ static long clk_programmable_round_rate(struct clk_hw *hw, unsigned long rate,
 	unsigned long best_diff;
 	unsigned long new_diff;
 	unsigned long cur_rate;
-	int shift = shift;
+	int shift;
 
 	if (rate > *parent_rate)
 		return *parent_rate;
-- 
1.9.rc1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] clk: at91: remove redundant assignment
  2014-02-06 18:53 [PATCH] clk: at91: remove redundant assignment Colin King
@ 2014-02-07 10:02 ` Nicolas Ferre
  2014-02-07 10:39   ` Boris BREZILLON
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Ferre @ 2014-02-07 10:02 UTC (permalink / raw)
  To: linux-arm-kernel

On 06/02/2014 19:53, Colin King :
> From: Colin Ian King <colin.king@canonical.com>
> 
> remove the redundant shift = shift assignment, it is extraneous.
> 
> Signed-off-by: Colin Ian King <colin.king@canonical.com>

Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>

Thanks.

Boris, can you integrate this patch to the "fixes" series that will be
sent to Mike during the 3.14 development cycle?

Bye,

> ---
>  drivers/clk/at91/clk-programmable.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/clk/at91/clk-programmable.c b/drivers/clk/at91/clk-programmable.c
> index fd792b2..ff86efe 100644
> --- a/drivers/clk/at91/clk-programmable.c
> +++ b/drivers/clk/at91/clk-programmable.c
> @@ -109,7 +109,7 @@ static long clk_programmable_round_rate(struct clk_hw *hw, unsigned long rate,
>  	unsigned long best_diff;
>  	unsigned long new_diff;
>  	unsigned long cur_rate;
> -	int shift = shift;
> +	int shift;
>  
>  	if (rate > *parent_rate)
>  		return *parent_rate;
> 


-- 
Nicolas Ferre

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] clk: at91: remove redundant assignment
  2014-02-07 10:02 ` Nicolas Ferre
@ 2014-02-07 10:39   ` Boris BREZILLON
  0 siblings, 0 replies; 3+ messages in thread
From: Boris BREZILLON @ 2014-02-07 10:39 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Nicolas, Colin,

On 07/02/2014 11:02, Nicolas Ferre wrote:
> On 06/02/2014 19:53, Colin King :
>> From: Colin Ian King <colin.king@canonical.com>
>>
>> remove the redundant shift = shift assignment, it is extraneous.
Thanks for reporting and fixing this.

>> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
>
> Thanks.
>
> Boris, can you integrate this patch to the "fixes" series that will be
> sent to Mike during the 3.14 development cycle?

The round_rate function has been replaced by determine_rate and thus the 
bug is not present anymore.

See JJ's series: 
http://us.generation-nt.com/patch-v2-0-4-clk-at91-better-support-pcks-help-213900572.html

Best Regards,

Boris

> Bye,
>
>> ---
>>   drivers/clk/at91/clk-programmable.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/clk/at91/clk-programmable.c b/drivers/clk/at91/clk-programmable.c
>> index fd792b2..ff86efe 100644
>> --- a/drivers/clk/at91/clk-programmable.c
>> +++ b/drivers/clk/at91/clk-programmable.c
>> @@ -109,7 +109,7 @@ static long clk_programmable_round_rate(struct clk_hw *hw, unsigned long rate,
>>   	unsigned long best_diff;
>>   	unsigned long new_diff;
>>   	unsigned long cur_rate;
>> -	int shift = shift;
>> +	int shift;
>>   
>>   	if (rate > *parent_rate)
>>   		return *parent_rate;
>>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-07 10:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-06 18:53 [PATCH] clk: at91: remove redundant assignment Colin King
2014-02-07 10:02 ` Nicolas Ferre
2014-02-07 10:39   ` Boris BREZILLON

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.