aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2021-02-10 19:28:41 +0000
committerDavid S. Miller <[email protected]>2021-02-11 22:22:13 +0000
commit205238f4ed3e14aed07a7b0121b94e404e65e78c (patch)
tree836b4b192ed5b65365b239c74739dc2f38418c0b /net/switchdev/switchdev.c
parentnet: stmmac: dwmac-intel-plat: remove unnecessary initialization (diff)
downloadkernel-205238f4ed3e14aed07a7b0121b94e404e65e78c.tar.gz
kernel-205238f4ed3e14aed07a7b0121b94e404e65e78c.zip
net: hns3: fix return of random stack value
Currently, a random stack value is being returned because variable _ret_ is not properly initialized. This variable is actually not used anymore and it should be removed. Fix this by removing all instances of variable ret and return 0. Fixes: 64749c9c38a9 ("net: hns3: remove redundant return value of hns3_uninit_all_ring()") Addresses-Coverity-ID: 1501700 ("Uninitialized scalar variable") Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions