mirror of
https://github.com/adulau/aha.git
synced 2025-01-02 14:13:18 +00:00
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>
This commit is contained in:
parent
51e0f058c4
commit
f166400bd4
1 changed files with 1 additions and 1 deletions
|
@ -738,7 +738,7 @@ static int esr_write_glue0(struct niu *np, unsigned long chan, u32 val)
|
||||||
|
|
||||||
static int esr_reset(struct niu *np)
|
static int esr_reset(struct niu *np)
|
||||||
{
|
{
|
||||||
u32 reset;
|
u32 uninitialized_var(reset);
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
err = mdio_write(np, np->port, NIU_ESR_DEV_ADDR,
|
err = mdio_write(np, np->port, NIU_ESR_DEV_ADDR,
|
||||||
|
|
Loading…
Reference in a new issue