]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: Slightly optimize 'find_portno()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 14 Nov 2021 19:02:35 +0000 (20:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Nov 2021 14:07:06 +0000 (14:07 +0000)
commit79e7716c7d34046c3459faa9aebc7d09946e9fe0
treef93536bfcdeaaa445d144fddca21ad7f53ac28d4
parent17d952399dfe6d6bbb84986d78a267d779dc12c3
net: bridge: Slightly optimize 'find_portno()'

The 'inuse' bitmap is local to this function. So we can use the
non-atomic '__set_bit()' to save a few cycles.

While at it, also remove some useless {}.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Nikolay Aleksandrov <nikolay@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_if.c