Commit fe8f8d99 authored by Ben Collins's avatar Ben Collins

IEEE1394(r1134): Fix some typos introduced over the last few changes

parent 8a9c807d
......@@ -62,13 +62,14 @@ static struct hl_host_info *hl_get_hostinfo(struct hpsb_highlevel *hl,
read_lock(&hl->host_info_lock);
list_for_each_entry(hi, &hl->host_info_list, list) {
if (hi->host == host)
break;
hi = NULL;
if (hi->host == host) {
read_unlock(&hl->host_info_lock);
return hi;
}
}
read_unlock(&hl->host_info_lock);
return hi;
return NULL;
}
......
......@@ -1170,7 +1170,7 @@ static void nodemgr_node_scan_one(struct host_info *hi,
guid = ((u64)be32_to_cpu(csr->bus_info_data[3]) << 32) | be32_to_cpu(csr->bus_info_data[4]);
ne = find_entry_by_guid(guid);
if (ne->host != host && ne->in_limbo) {
if (ne && ne->host != host && ne->in_limbo) {
/* Must have moved this device from one host to another */
nodemgr_remove_ne(ne);
ne = NULL;
......
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