diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2009-01-07 10:14:39 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2009-01-07 10:14:39 -0500 |
commit | 2eddbadaebdf77a52d5cccc7cdd116656f1cf1f9 (patch) | |
tree | 4e98a4c11b083ac20aaa3b0d127c5809861752ff | |
parent | 983e1016050e3bb9d64bde0f7d4792a6fcb248d8 (diff) |
Blackfin arch: tweak the BUG_ON() check to allow for equal values
Tweak the BUG_ON() check to allow for equal values since the way pos is
handled ... it is always indexed and post incremented
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
-rw-r--r-- | arch/blackfin/kernel/cplb-nompu/cplbinit.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/blackfin/kernel/cplb-nompu/cplbinit.c b/arch/blackfin/kernel/cplb-nompu/cplbinit.c index e14c37e98ed5..735413d2c228 100644 --- a/arch/blackfin/kernel/cplb-nompu/cplbinit.c +++ b/arch/blackfin/kernel/cplb-nompu/cplbinit.c | |||
@@ -425,10 +425,10 @@ void __init generate_cplb_tables_cpu(unsigned int cpu) | |||
425 | BUG_ON(cplb.init_d.pos < 1 + cplb_data[ZERO_P].valid + cplb_data[L1D_MEM].valid); | 425 | BUG_ON(cplb.init_d.pos < 1 + cplb_data[ZERO_P].valid + cplb_data[L1D_MEM].valid); |
426 | 426 | ||
427 | /* make sure we didnt overflow the table */ | 427 | /* make sure we didnt overflow the table */ |
428 | BUG_ON(cplb.init_i.size <= cplb.init_i.pos); | 428 | BUG_ON(cplb.init_i.size < cplb.init_i.pos); |
429 | BUG_ON(cplb.init_d.size <= cplb.init_d.pos); | 429 | BUG_ON(cplb.init_d.size < cplb.init_d.pos); |
430 | BUG_ON(cplb.switch_i.size <= cplb.switch_i.pos); | 430 | BUG_ON(cplb.switch_i.size < cplb.switch_i.pos); |
431 | BUG_ON(cplb.switch_d.size <= cplb.switch_d.pos); | 431 | BUG_ON(cplb.switch_d.size < cplb.switch_d.pos); |
432 | 432 | ||
433 | /* close tables */ | 433 | /* close tables */ |
434 | close_cplbtab(&cplb.init_i); | 434 | close_cplbtab(&cplb.init_i); |