mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 00:29:36 -04:00
staging: rtl8192e: Replace rtl92e_enable_irq with rtl92e_irq_enable
Replace rtl92e_enable_irq with rtl92e_irq_enable to increase readability. priv->irq_enabled = 1 was set in both functions. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/6e8167402d279299e3ccf3468021abb0699d0e8e.1694546300.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0b20155f60
commit
6c8bc47b67
@@ -1870,7 +1870,7 @@ rtl92e_init_variables(struct net_device *dev)
|
||||
priv->bfirst_after_down = false;
|
||||
}
|
||||
|
||||
void rtl92e_enable_irq(struct net_device *dev)
|
||||
void rtl92e_irq_enable(struct net_device *dev)
|
||||
{
|
||||
struct r8192_priv *priv = (struct r8192_priv *)rtllib_priv(dev);
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@ bool rtl92e_is_rx_stuck(struct net_device *dev);
|
||||
void rtl92e_ack_irq(struct net_device *dev, u32 *p_inta);
|
||||
void rtl92e_enable_rx(struct net_device *dev);
|
||||
void rtl92e_enable_tx(struct net_device *dev);
|
||||
void rtl92e_enable_irq(struct net_device *dev);
|
||||
void rtl92e_init_variables(struct net_device *dev);
|
||||
void rtl92e_start_beacon(struct net_device *dev);
|
||||
void rtl92e_set_reg(struct net_device *dev, u8 variable, u8 *val);
|
||||
|
||||
@@ -227,15 +227,6 @@ static void _rtl92e_tx_timeout(struct net_device *dev, unsigned int txqueue)
|
||||
netdev_info(dev, "TXTIMEOUT");
|
||||
}
|
||||
|
||||
void rtl92e_irq_enable(struct net_device *dev)
|
||||
{
|
||||
struct r8192_priv *priv = rtllib_priv(dev);
|
||||
|
||||
priv->irq_enabled = 1;
|
||||
|
||||
rtl92e_enable_irq(dev);
|
||||
}
|
||||
|
||||
static void _rtl92e_set_chan(struct net_device *dev, short ch)
|
||||
{
|
||||
struct r8192_priv *priv = rtllib_priv(dev);
|
||||
|
||||
Reference in New Issue
Block a user