]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: flatten calls to set-rx-mode
authorShannon Nelson <snelson@pensando.io>
Thu, 26 Aug 2021 01:24:47 +0000 (18:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Aug 2021 08:41:50 +0000 (09:41 +0100)
commit5ed2a5a048261f22e6bb47cb5d2b4d2ce3793e38
tree1733dc2d2d3ed11e8888e7507ca4d81b0b84b5b3
parent2fdfd43b83cc18653c1b66a9f8f73688a3033758
ionic: flatten calls to set-rx-mode

Since only two functions call through ionic_set_rx_mode(), one
that can sleep and one that can't, we can split the function
and put the bits of code into the callers.  This removes an
unnecessary calling layer.

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.c