diff options
| author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2021-02-10 22:28:41 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-02-12 01:22:13 +0300 |
| commit | 205238f4ed3e14aed07a7b0121b94e404e65e78c (patch) | |
| tree | 836b4b192ed5b65365b239c74739dc2f38418c0b /tools/perf/scripts/python | |
| parent | 0d645232ddbfea2ee59fdb6ec48ced4cf69aaf9f (diff) | |
| download | linux-205238f4ed3e14aed07a7b0121b94e404e65e78c.tar.xz | |
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 <gustavoars@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
