Thread (4 messages) flat view 4 messages, 4 authors, 2021-03-24

Re: [PATCH][next] net: bridge: Fix missing return assignment from br_vlan_replay_one call

From: Vladimir Oltean <olteanv@gmail.com>
Date: 2021-03-24 16:03:14
Also in: bridge, kernel-janitors, lkml

On Wed, Mar 24, 2021 at 03:09:50PM +0000, Colin King wrote:
From: Colin Ian King <redacted>

The call to br_vlan_replay_one is returning an error return value but
this is not being assigned to err and the following check on err is
currently always false because err was initialized to zero. Fix this
by assigning err.

Addresses-Coverity: ("'Constant' variable guards dead code")
Fixes: 22f67cdfae6a ("net: bridge: add helper to replay VLANs installed on port")
Signed-off-by: Colin Ian King <redacted>
---
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help