z85230: fix warning in drivers/net/wan/z85230.c
authorIngo Molnar <mingo@elte.hu>
Wed, 26 Nov 2008 00:53:08 +0000 (16:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2008 00:53:08 +0000 (16:53 -0800)
this warning:

  drivers/net/wan/z85230.c: In function ‘z8530_interrupt’:
  drivers/net/wan/z85230.c:713: warning: ‘intr’ may be used uninitialized in this function

is clearly bogus - annotate it.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/z85230.c

index 5bf7e01ef0e9fe3c408408e24dc8e43a772f6161..d7bf53a56e179632e896bac6fb75105c6509591f 100644 (file)
@@ -710,7 +710,7 @@ EXPORT_SYMBOL(z8530_nop);
 irqreturn_t z8530_interrupt(int irq, void *dev_id)
 {
        struct z8530_dev *dev=dev_id;
-       u8 intr;
+       u8 uninitialized_var(intr);
        static volatile int locker=0;
        int work=0;
        struct z8530_irqhandler *irqs;