Skip to content

Commit

Permalink
net: bridge: multicast: fix br_multicast_eht_set_entry_lookup indenta…
Browse files Browse the repository at this point in the history
…tion

Fix the messed up indentation in br_multicast_eht_set_entry_lookup().

Fixes: baa74d3 ("net: bridge: multicast: add EHT source set handling functions")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Link: https://lore.kernel.org/r/20210125082040.13022-1-razor@blackwall.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Nikolay Aleksandrov authored and Jakub Kicinski committed Jan 27, 2021
1 parent 02c2694 commit 3e841ba
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions net/bridge/br_multicast_eht.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,15 @@ br_multicast_eht_set_entry_lookup(struct net_bridge_group_eht_set *eht_set,
struct net_bridge_group_eht_set_entry *this;
int result;

this = rb_entry(node, struct net_bridge_group_eht_set_entry,
rb_node);
result = memcmp(h_addr, &this->h_addr, sizeof(*h_addr));
if (result < 0)
node = node->rb_left;
else if (result > 0)
node = node->rb_right;
else
return this;
this = rb_entry(node, struct net_bridge_group_eht_set_entry,
rb_node);
result = memcmp(h_addr, &this->h_addr, sizeof(*h_addr));
if (result < 0)
node = node->rb_left;
else if (result > 0)
node = node->rb_right;
else
return this;
}

return NULL;
Expand Down

0 comments on commit 3e841ba

Please sign in to comment.