Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -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;