Some condition checks on iosapic_check_gsi_range() can be omitted because always `base <= end' is assured. This patch simplifies that ckecks. Signed-off-by: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com> --- arch/ia64/kernel/iosapic.c | 5 +---- 1 files changed, 1 insertion(+), 4 deletions(-) Index: linux-2.6.16/arch/ia64/kernel/iosapic.c =================================================================== --- linux-2.6.16.orig/arch/ia64/kernel/iosapic.c 2006-03-27 10:37:09.000000000 +0900 +++ linux-2.6.16/arch/ia64/kernel/iosapic.c 2006-03-27 15:13:08.000000000 +0900 @@ -1057,10 +1057,7 @@ 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; - To unsubscribe from this list: send the line "unsubscribe linux-ia64" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Mon Mar 27 19:11:24 2006
This archive was generated by hypermail 2.1.8 : 2006-03-27 19:11:33 EST