drivers: partition: correct some static analysis tools issues
authorYann Gautier <yann.gautier@st.com>
Fri, 9 Nov 2018 17:21:04 +0000 (18:21 +0100)
committerYann Gautier <yann.gautier@st.com>
Fri, 9 Nov 2018 17:22:01 +0000 (18:22 +0100)
commit4cb17707b5c83e47477d743cb1129fc0c75a15c1
tree1a0345efc14fded8980da4471b7d4b9cc100cd1c
parent3c471c35812bc7863509dda1aedad08d35b48896
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>
drivers/partition/gpt.c