Changeset 2044 for Whitix/trunk

Show
Ignore:
Timestamp:
04/03/09 19:05:11 (3 years ago)
Author:
mwhitworth
Message:

Fix result check warnings (IrqAdd).

Location:
Whitix/trunk/devices/input
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/devices/input/keyboard.c

    r1918 r2044  
    214214int KeyboardInit() 
    215215{ 
    216         IrqAdd(1,KeyboardIrq,NULL); 
     216        int ret; 
     217         
     218        ret = IrqAdd(1, KeyboardIrq, NULL); 
     219         
     220        if (ret) 
     221                return ret; 
     222         
    217223        KeyboardAckScancode(); 
    218224 
    219         /* Do self test here */ 
     225        /* Do self test here. TODO: Need to check if keyboard is present. */ 
     226         
    220227         
    221228        /* Clear the buffer. */ 
  • Whitix/trunk/devices/input/ps2mouse.c

    r1808 r2044  
    111111        { 
    112112                Ps2MouseActivate(); 
    113                 IrqAdd(12, Ps2MouseInterrupt, NULL); 
     113                if (IrqAdd(12, Ps2MouseInterrupt, NULL)) 
     114                        return -EIO; 
    114115 
    115116                param=3 | (1 << 6);