mirror of
https://github.com/torvalds/linux.git
synced 2026-05-26 08:02:27 +02:00
net: atheros: atl1c: remove unused atl1c_irq_reset function
clang with W=1 reports
drivers/net/ethernet/atheros/atl1c/atl1c_main.c:214:20: error:
unused function 'atl1c_irq_reset' [-Werror,-Wunused-function]
static inline void atl1c_irq_reset(struct atl1c_adapter *adapter)
^
This function is not used, so remove it.
Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com>
Link: https://lore.kernel.org/r/20230320232317.1729464-1-trix@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
c8384d4a51
commit
f6f4e739b1
|
|
@ -207,16 +207,6 @@ static inline void atl1c_irq_disable(struct atl1c_adapter *adapter)
|
|||
synchronize_irq(adapter->pdev->irq);
|
||||
}
|
||||
|
||||
/**
|
||||
* atl1c_irq_reset - reset interrupt confiure on the NIC
|
||||
* @adapter: board private structure
|
||||
*/
|
||||
static inline void atl1c_irq_reset(struct atl1c_adapter *adapter)
|
||||
{
|
||||
atomic_set(&adapter->irq_sem, 1);
|
||||
atl1c_irq_enable(adapter);
|
||||
}
|
||||
|
||||
/*
|
||||
* atl1c_wait_until_idle - wait up to AT_HW_MAX_IDLE_DELAY reads
|
||||
* of the idle status register until the device is actually idle
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user