Unverified Commit f19d2104 authored by Soby Mathew's avatar Soby Mathew Committed by GitHub
Browse files

Merge pull request #1591 from jts-arm/cov1

Fix static analysis defects
parents f60a74af fa06b744
......@@ -39,10 +39,15 @@ static int plat_sgi_append_config_node(void)
platform_name = (char *)fdt_getprop(fdt, 0, "compatible", NULL);
if (platform_name == NULL) {
ERROR("Invalid HW_CONFIG DTB passed\n");
return -1;
}
if (strcmp(platform_name, "arm,sgi575") == 0) {
platid = mmio_read_32(SSC_VERSION);
} else {
WARN("Invalid platform \n");
WARN("Invalid platform\n");
return -1;
}
......
Markdown is supported
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