diff options
| author | Alex Dewar <[email protected]> | 2020-09-10 14:49:10 +0100 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-09-10 15:15:47 -0700 |
| commit | cdd0a379a6a3f7583ba6eedeef7c522aa4b2c5b3 (patch) | |
| tree | bbb4e0e46bc7e63a31a0c02feeaa433728910ad6 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 45677bc6dcccd45fd1e3b7079b031e9a3ede483b (diff) | |
net: mvpp2: ptp: Fix unused variables
In the functions mvpp2_isr_handle_xlg() and
mvpp2_isr_handle_gmac_internal(), the bool variable link is assigned a
true value in the case that a given bit of val is set. However, if the
bit is unset, no value is assigned to link and it is then passed to
mvpp2_isr_handle_link() without being initialised. Fix by assigning to
link the value of the bit test.
Build-tested on x86.
Fixes: 36cfd3a6e52b ("net: mvpp2: restructure "link status" interrupt handling")
Signed-off-by: Alex Dewar <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions