diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-04-05 20:19:31 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-06 22:33:17 +0200 |
commit | d1db799e968bf6677ac88a90729945ce0eb3ede5 (patch) | |
tree | d136a749e2fdc5fa279c824cd48e659e2818bfb1 /firmware | |
parent | net: dsa: loop: Fix uninitialized pvid variable (diff) | |
download | linux-d1db799e968bf6677ac88a90729945ce0eb3ede5.tar.xz linux-d1db799e968bf6677ac88a90729945ce0eb3ede5.zip |
net: dsa: loop: Initialize err in dsa_loop_vlan_dump
Dan's static checker reported the following:
drivers/net/dsa/dsa_loop.c:223 dsa_loop_port_vlan_dump()
error: uninitialized symbol 'err'.
which could happen if we do hit the continue statement for each iteration of
the loop. Initialize err to 0 here.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 98cd1552ea27 ("net: dsa: Mock-up driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions