summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSatoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>2006-03-27 17:13:46 +0900
committerTony Luck <tony.luck@intel.com>2006-03-28 10:42:15 -0800
commite6d1ba5cd9954e7c15538aaef7585b235a69e0e1 (patch)
tree4e23ac0b61613c860a8a38470b0fe6e5b0ff2357
parent46cba3dcaea4eb51b28fac78d15542a90619a6ef (diff)
downloadkernel-crypto-e6d1ba5cd9954e7c15538aaef7585b235a69e0e1.tar.gz
kernel-crypto-e6d1ba5cd9954e7c15538aaef7585b235a69e0e1.tar.xz
kernel-crypto-e6d1ba5cd9954e7c15538aaef7585b235a69e0e1.zip
[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: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
-rw-r--r--arch/ia64/kernel/iosapic.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/ia64/kernel/iosapic.c b/arch/ia64/kernel/iosapic.c
index 22d845f8536..7956eb9058f 100644
--- a/arch/ia64/kernel/iosapic.c
+++ b/arch/ia64/kernel/iosapic.c
@@ -1063,10 +1063,7 @@ iosapic_check_gsi_range (unsigned int gsi_base, unsigned int ver)
base = iosapic_lists[index].gsi_base;
end = base + iosapic_lists[index].num_rte - 1;
- if (gsi_base < base && gsi_end < base)
- continue;/* OK */
-
- if (gsi_base > end && gsi_end > end)
+ if (gsi_end < base || end < gsi_base)
continue; /* OK */
return -EBUSY;