Commit cdd0a37
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: 36cfd3a ("net: mvpp2: restructure "link status" interrupt handling")
Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 45677bc commit cdd0a37
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3070 | 3070 | | |
3071 | 3071 | | |
3072 | 3072 | | |
3073 | | - | |
3074 | | - | |
| 3073 | + | |
3075 | 3074 | | |
3076 | 3075 | | |
3077 | 3076 | | |
| |||
3087 | 3086 | | |
3088 | 3087 | | |
3089 | 3088 | | |
3090 | | - | |
3091 | | - | |
| 3089 | + | |
3092 | 3090 | | |
3093 | 3091 | | |
3094 | 3092 | | |
| |||
0 commit comments