Commit e6d1ba5c authored by Satoru Takeuchi's avatar Satoru Takeuchi Committed by Tony Luck

[IA64] simplify some condition checks in iosapic_check_gsi_range

Some condition checks on iosapic_check_gsi_range() can be omitted
because always `base <= end' is assured. This patch simplifies those
checks.
Signed-off-by: default avatarSatoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 46cba3dc
...@@ -1063,10 +1063,7 @@ iosapic_check_gsi_range (unsigned int gsi_base, unsigned int ver) ...@@ -1063,10 +1063,7 @@ iosapic_check_gsi_range (unsigned int gsi_base, unsigned int ver)
base = iosapic_lists[index].gsi_base; base = iosapic_lists[index].gsi_base;
end = base + iosapic_lists[index].num_rte - 1; end = base + iosapic_lists[index].num_rte - 1;
if (gsi_base < base && gsi_end < base) if (gsi_end < base || end < gsi_base)
continue;/* OK */
if (gsi_base > end && gsi_end > end)
continue; /* OK */ continue; /* OK */
return -EBUSY; return -EBUSY;
......
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