aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/irda
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2011-08-10 19:26:37 -0400
committerDavid S. Miller <davem@davemloft.net>2011-08-11 08:52:57 -0400
commit2eed7982d76f3a1627ba6536128a64b8e66ad189 (patch)
treeaf19b74f901afa1a757da68b555c6e8333177669 /drivers/net/irda
parent86d0aff0e52cc3954529774c6243514deb705cb5 (diff)
net/irda: sh_sir: tidyup compile warning
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>
Diffstat (limited to 'drivers/net/irda')
-rw-r--r--drivers/net/irda/sh_sir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/irda/sh_sir.c b/drivers/net/irda/sh_sir.c
index 10b13ea4d765..ed7d7d62bf68 100644
--- a/drivers/net/irda/sh_sir.c
+++ b/drivers/net/irda/sh_sir.c
@@ -513,7 +513,7 @@ static void sh_sir_tx(struct sh_sir_self *self, int phase)
513 513
514static int sh_sir_read_data(struct sh_sir_self *self) 514static int sh_sir_read_data(struct sh_sir_self *self)
515{ 515{
516 u16 val; 516 u16 val = 0;
517 int timeout = 1024; 517 int timeout = 1024;
518 518
519 while (timeout--) { 519 while (timeout--) {