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)
commitb941ea057177daf7dd661959803f351808754e6e
tree1733dc2d2d3ed11e8888e7507ca4d81b0b84b5b3
parent56c8a53b6280732a6e8ae386eec09ca97c9c5373
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