]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: Extract recurring driver reset code into a function
authorArthur Kiyanovski <akiyano@amazon.com>
Fri, 7 Jan 2022 20:23:46 +0000 (20:23 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 8 Jan 2022 03:25:52 +0000 (19:25 -0800)
commitd65cce2d264b2afa23766fab55887c52ef59c93c
treefacf1ee7e9e142f9a13774944d0ae1d657e30ddb
parentc676cb40c4428609dda075c9e7ceca69b7475fe8
net: ena: Extract recurring driver reset code into a function

Create an inline function for resetting the driver
to reduce code duplication.

Signed-off-by: Nati Koler <nkoler@amazon.com>
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/amazon/ena/ena_netdev.c
drivers/net/ethernet/amazon/ena/ena_netdev.h