forked from Minki/linux
mlxsw: spectrum_router: Clarify a piece of code
Prefer logical operator that expresses the intent to bitwise one that happens to give the same result. Signed-off-by: Petr Machata <petrm@mellanox.com> Reviewed-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f1b1f273ae
commit
56b8a9ed27
@ -1668,7 +1668,7 @@ mlxsw_sp_nexthop_group_refresh(struct mlxsw_sp *mlxsw_sp,
|
||||
for (i = 0; i < nh_grp->count; i++) {
|
||||
nh = &nh_grp->nexthops[i];
|
||||
|
||||
if (nh->should_offload ^ nh->offloaded) {
|
||||
if (nh->should_offload != nh->offloaded) {
|
||||
offload_change = true;
|
||||
if (nh->should_offload)
|
||||
nh->update = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user