drivers: partition: correct some static analysis tools issues
cppcheck:
[drivers/partition/gpt.c:19] -> [drivers/partition/gpt.c:19]:
 (warning) Either the condition 'str_in!=((void*)0)' is redundant
 or there is possible null pointer dereference: name.

sparse:
drivers/partition/gpt.c:39:9:
 warning: Using plain integer as NULL pointer

Signed-off-by: Yann Gautier <yann.gautier@st.com>
1 parent 3c471c3 commit 4cb17707b5c83e47477d743cb1129fc0c75a15c1
@Yann Gautier Yann Gautier authored on 9 Nov 2018
Showing 1 changed file
View
drivers/partition/gpt.c