mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-26 12:27:12 +00:00
Fixed off-by-one errors in lib_m68k/interrupts.c
Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
This commit is contained in:
parent
a5989c42ae
commit
626d07348e
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ static __inline__ void set_sr (unsigned short sr)
|
||||||
*/
|
*/
|
||||||
void irq_install_handler (int vec, interrupt_handler_t * handler, void *arg)
|
void irq_install_handler (int vec, interrupt_handler_t * handler, void *arg)
|
||||||
{
|
{
|
||||||
if ((vec < 0) || (vec > NR_IRQS)) {
|
if ((vec < 0) || (vec >= NR_IRQS)) {
|
||||||
printf ("irq_install_handler: wrong interrupt vector %d\n",
|
printf ("irq_install_handler: wrong interrupt vector %d\n",
|
||||||
vec);
|
vec);
|
||||||
return;
|
return;
|
||||||
|
@ -73,7 +73,7 @@ void irq_install_handler (int vec, interrupt_handler_t * handler, void *arg)
|
||||||
|
|
||||||
void irq_free_handler (int vec)
|
void irq_free_handler (int vec)
|
||||||
{
|
{
|
||||||
if ((vec < 0) || (vec > NR_IRQS)) {
|
if ((vec < 0) || (vec >= NR_IRQS)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue