]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
board/mpl/common/isa.c: Fix GCC 4.6 build warnings
authorDavid Müller (ELSOFT AG) <d.mueller@elsoft.ch>
Mon, 12 Dec 2011 01:36:53 +0000 (01:36 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 12 Dec 2011 13:23:22 +0000 (14:23 +0100)
Fix:
../common/isa.c: In function 'handle_isa_int':
../common/isa.c:385:21: warning: variable 'isr2' set but not used
[-Wunused-but-set-variable]
../common/isa.c:385:16: warning: variable 'isr1' set but not used
[-Wunused-but-set-variable]

Signed-off-by: David Mueller <d.mueller@elsoft.ch>
board/mpl/common/isa.c

index 5d467b48dc30fab456e11e628a73398b5e19aa5c..fc56153b87c79de1301a34bab14a48d1708abecb 100644 (file)
@@ -382,12 +382,12 @@ void init_8259A(void)
 int handle_isa_int(void)
 {
        unsigned long irqack;
-       unsigned char isr1,isr2,irq;
+       unsigned char irq;
        /* first we acknokledge the int via the PCI bus */
        irqack=in32(PCI_INT_ACK_ADDR);
        /* now we get the ISRs */
-       isr2=in8(ISR_2);
-       isr1=in8(ISR_1);
+       in8(ISR_2);
+       in8(ISR_1);
        irq=(unsigned char)irqack;
        irq-=32;
 /*     if((irq==7)&&((isr1&0x80)==0)) {