Skip to content
Commit bead2168 authored by Colin Ian King's avatar Colin Ian King Committed by Wolfram Sang
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Acked-by: default avatarAlexandre TORGUE <alexandre.torgue@st.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 939c5a46
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment