]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
net/irda: sh_sir: tidyup compile warning
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 10 Aug 2011 23:26:37 +0000 (23:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 11 Aug 2011 12:52:57 +0000 (05:52 -0700)
This patch tidyup below warning

${LINUX}/drivers/net/irda/sh_sir.c:514:6: warning:
 'val' may be used uninitialized in this function

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/irda/sh_sir.c

index 10b13ea4d765d1824ef4d3f0b13acb11b5c75d7a..ed7d7d62bf68ddff78d657fa3d93d264434264a0 100644 (file)
@@ -513,7 +513,7 @@ static void sh_sir_tx(struct sh_sir_self *self, int phase)
 
 static int sh_sir_read_data(struct sh_sir_self *self)
 {
-       u16 val;
+       u16 val = 0;
        int timeout = 1024;
 
        while (timeout--) {