Commit cb141175 authored by Umang Yadav's avatar Umang Yadav
Browse files

Tidy & SLES fixes

parent 2013da67
......@@ -210,14 +210,12 @@ struct auto_gen_root_modules
{
return true;
}
else if(input_from_other_tid_module + num_default_tids == in_degree)
{
return false;
}
else if(num_same_tid + num_default_tids == in_degree)
else if((input_from_other_tid_module + num_default_tids == in_degree) or
(num_same_tid + num_default_tids == in_degree))
{
return false;
}
(void)(num_different_tids);
return true;
}
......@@ -259,11 +257,9 @@ struct auto_gen_root_modules
}
}
}
if(output_tids.empty())
{
return false;
}
else if(output_tids.size() == 1 and output_tids.cbegin()->second == outputs.size())
if(output_tids.empty() or
(output_tids.size() == 1 and output_tids.cbegin()->second == outputs.size()))
{
return false;
}
......
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