]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
niu: fix warnings in drivers/net/niu.c
authorIngo Molnar <mingo@elte.hu>
Wed, 26 Nov 2008 00:48:12 +0000 (16:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Nov 2008 00:48:12 +0000 (16:48 -0800)
commit51e0f058c496ef2ca5362c16a53ce1ce454d0817
tree4ac330dabb9bd1557902a042c86db2d6a1122cb7
parent2e6a684b8489b21324f314be2bd8d3788a9f6445
niu: fix warnings in drivers/net/niu.c

these warnings:

  drivers/net/niu.c: In function ‘serdes_init_niu_1g_serdes’:
  drivers/net/niu.c:451: warning: ‘sig’ may be used uninitialized in this function
  drivers/net/niu.c: In function ‘serdes_init_niu_10g_serdes’:
  drivers/net/niu.c:550: warning: ‘sig’ may be used uninitialized in this function

triggers because GCC does not recognize that the max_retry loop
always initializes 'sig', due to max_retry != 0.

Annotate them.

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