io: io_stm32image: correct possible NULL pointer dereference
This issue was found with cppcheck in our downstream code:
[drivers/st/io/io_stm32image.c:234] -> [drivers/st/io/io_stm32image.c:244]:
 (warning) Either the condition 'buffer!=0U' is redundant or there is
 possible null pointer dereference: local_buffer.

Change-Id: Ieb615b7e485dc93bbeeed4cd8bf845eb84c14ac9
Signed-off-by: Yann Gautier <yann.gautier@st.com>
1 parent e9d1e5a commit 95433894307ab5b9330625a547a3f9ca509368e5
@Yann Gautier Yann Gautier authored on 18 Mar 2020
Showing 1 changed file
View
drivers/st/io/io_stm32image.c