Skip to content

Commit

Permalink
net/irda: sh_sir: tidyup compile warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kuninori Morimoto authored and David S. Miller committed Aug 11, 2011
1 parent 86d0aff commit 2eed798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/irda/sh_sir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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--) {
Expand Down

0 comments on commit 2eed798

Please sign in to comment.