Re: [PATCH] i2c-stm32f4: remove redundant initialization of pointer reg

2018-02-26 Thread Alexandre Torgue
Hi, On 02/26/2018 09:06 PM, Wolfram Sang wrote: On Tue, Jan 16, 2018 at 05:44:04PM +, Colin King wrote: From: Colin Ian King The pointer reg is assigned a value that is never read, it is later overwritten with a new value, hence the redundant initialization can

Re: [PATCH] i2c-stm32f4: remove redundant initialization of pointer reg

2018-02-26 Thread Alexandre Torgue
Hi, On 02/26/2018 09:06 PM, Wolfram Sang wrote: On Tue, Jan 16, 2018 at 05:44:04PM +, Colin King wrote: From: Colin Ian King The pointer reg is assigned a value that is never read, it is later overwritten with a new value, hence the redundant initialization can be removed. Cleans up

Re: [PATCH] i2c-stm32f4: remove redundant initialization of pointer reg

2018-02-26 Thread Wolfram Sang
On Tue, Jan 16, 2018 at 05:44:04PM +, Colin King wrote: > From: Colin Ian King > > The pointer reg is assigned a value that is never read, it is later > overwritten with a new value, hence the redundant initialization can > be removed. > > Cleans up clang warning:

Re: [PATCH] i2c-stm32f4: remove redundant initialization of pointer reg

2018-02-26 Thread Wolfram Sang
On Tue, Jan 16, 2018 at 05:44:04PM +, Colin King wrote: > From: Colin Ian King > > The pointer reg is assigned a value that is never read, it is later > overwritten with a new value, hence the redundant initialization can > be removed. > > Cleans up clang warning: >

[PATCH] i2c-stm32f4: remove redundant initialization of pointer reg

2018-01-16 Thread Colin King
From: Colin Ian King The pointer reg is assigned a value that is never read, it is later overwritten with a new value, hence the redundant initialization can be removed. Cleans up clang warning: drivers/i2c/busses/i2c-stm32f4.c:352:16: warning: Value stored to 'reg'

[PATCH] i2c-stm32f4: remove redundant initialization of pointer reg

2018-01-16 Thread Colin King
From: Colin Ian King The pointer reg is assigned a value that is never read, it is later overwritten with a new value, hence the redundant initialization can be removed. Cleans up clang warning: drivers/i2c/busses/i2c-stm32f4.c:352:16: warning: Value stored to 'reg' during its initialization is