diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-11-25 19:48:42 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-25 19:48:42 -0500 |
commit | f166400bd4c92df72d997e0da8713fae90d56e57 (patch) | |
tree | 1a4dedc66de0afac081a2303f0be98661d6b6dd2 /drivers/net | |
parent | 51e0f058c496ef2ca5362c16a53ce1ce454d0817 (diff) |
niu: fix another warning in drivers/net/niu.c
this warning:
drivers/net/niu.c: In function ‘esr_reset’:
drivers/net/niu.c:741: warning: ‘reset’ may be used uninitialized in this function
triggers because GCC does not recognize the (correct) error flow
between:
- esr_read_reset() and 'reset'
Annotate it.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/niu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 5b7b31d25be3..2f98f7a4117a 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c | |||
@@ -738,7 +738,7 @@ static int esr_write_glue0(struct niu *np, unsigned long chan, u32 val) | |||
738 | 738 | ||
739 | static int esr_reset(struct niu *np) | 739 | static int esr_reset(struct niu *np) |
740 | { | 740 | { |
741 | u32 reset; | 741 | u32 uninitialized_var(reset); |
742 | int err; | 742 | int err; |
743 | 743 | ||
744 | err = mdio_write(np, np->port, NIU_ESR_DEV_ADDR, | 744 | err = mdio_write(np, np->port, NIU_ESR_DEV_ADDR, |