diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-07-31 17:21:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-01 19:38:05 +0300 |
commit | 96d395020e87607b3454edc2f49a03ddcfbef986 (patch) | |
tree | 00ae6c14f7e91edce0d7a876e080f88baad1dd09 /drivers/net/hamradio/6pack.c | |
parent | bf774d141a33ea13e8cd11034ada395d3f23ef51 (diff) | |
download | linux-96d395020e87607b3454edc2f49a03ddcfbef986.tar.xz |
net/mlx5e: Fix uninitialized variable
There is a potential execution path in which variable *err* is returned
without being properly initialized previously.
Fix this by initializing variable *err* to 0.
Addresses-Coverity-ID: 1472116 ("Uninitialized scalar variable")
Fixes: 0ec13877ce95 ("net/mlx5e: Gather all XDP pre-requisite checks in a single function")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/hamradio/6pack.c')
0 files changed, 0 insertions, 0 deletions