X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Fextable.c;h=179c0874559569bf2626cbfc70bfcfef09474097;hb=a993b542bb4cd3e5a64863b7ef892bbebec2239b;hp=18df57c029df1d702f4d1a4bb748b74e3ff82750;hpb=7211bb9b64f17b23834d91fc3d0c1d78671ee9a8;p=linux-2.6-omap-h63xx.git diff --git a/lib/extable.c b/lib/extable.c index 18df57c029d..179c0874559 100644 --- a/lib/extable.c +++ b/lib/extable.c @@ -1,5 +1,4 @@ /* - * lib/extable.c * Derived from arch/ppc/mm/extable.c and arch/i386/mm/extable.c. * * Copyright (C) 2004 Paul Mackerras, IBM Corp. @@ -10,7 +9,6 @@ * 2 of the License, or (at your option) any later version. */ -#include #include #include #include @@ -59,10 +57,10 @@ search_extable(const struct exception_table_entry *first, while (first <= last) { const struct exception_table_entry *mid; - mid = (last - first) / 2 + first; + mid = ((last - first) >> 1) + first; /* - * careful, the distance between entries can be - * larger than 2GB: + * careful, the distance between value and insn + * can be larger than MAX_LONG: */ if (mid->insn < value) first = mid + 1;