]> git.baikalelectronics.ru Git - arm-tf.git/commit
spi: stm32_qspi: correct static analysis issues
authorYann Gautier <yann.gautier@st.com>
Wed, 11 Mar 2020 16:09:21 +0000 (17:09 +0100)
committerYann Gautier <yann.gautier@st.com>
Mon, 23 Mar 2020 15:38:41 +0000 (16:38 +0100)
commit9d22d310804a73bc08e1cfcf9bbcfd77f8b5a799
tree5098b3e7712fd204e7da2024e6a0c69118ee5547
parent907c58b2e12cbc7336b3f9d5977cc9ae8aeefae4
spi: stm32_qspi: correct static analysis issues

Sparse issue:
drivers/st/spi/stm32_qspi.c:445:5:
 warning: symbol 'stm32_qspi_init' was not declared. Should it be static?

Cppcheck issue:
[drivers/st/spi/stm32_qspi.c:175] -> [drivers/st/spi/stm32_qspi.c:187]:
 (style) Variable 'len' is reassigned a value before the old one has been
 used.
[drivers/st/spi/stm32_qspi.c:178]:
 (style) The scope of the variable 'timeout' can be reduced.

Change-Id: I575fb50766355a6717cbd193fc4a80ff1923014c
Signed-off-by: Yann Gautier <yann.gautier@st.com>
drivers/st/spi/stm32_qspi.c