i2c-stm32f4: remove redundant initialization of pointer reg
commitbead21687f293cb1e1365703f11cf1cc6aaaf833
authorColin Ian King <colin.king@canonical.com>
Tue, 16 Jan 2018 17:44:04 +0000 (16 17:44 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 27 Feb 2018 12:51:05 +0000 (27 13:51 +0100)
tree6387d6b4136a26ce6eb9f1cdf66aed2b15df62a8
parent939c5a46e5cac7524b327d43ae826fd6941fa2aa
i2c-stm32f4: remove redundant initialization of pointer reg

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 never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Alexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-stm32f4.c