Skip to contentSkip to conversation

misc: hpilo: remove unused is_device_reset function

PATCH New Tom Rix 1 participant 1 message Mar 19, 2023

Subsystems (2)
lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH 1/1 misc: hpilo: remove unused is_device_reset function

clang with W=1 reports drivers/misc/hpilo.c:395:19: error: unused function
'is_device_reset' [-Werror,-Wunused-function]
static inline int is_device_reset(struct ilo_hwinfo *hw)

                  ^

This function is not used, so remove it.

---
 drivers/misc/hpilo.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/misc/hpilo.c +0 -6
index 8d00df9243c4..ba4b00b8bea1 100644
@@ -392,12 +392,6 @@ static inline int is_db_reset(int db_out)
 	return db_out & (1 << DB_RESET);
 }
 
-static inline int is_device_reset(struct ilo_hwinfo *hw)
-{
-	/* check for global reset condition */
-	return is_db_reset(get_device_outbound(hw));
-}
-
 static inline void clear_pending_db(struct ilo_hwinfo *hw, int clr)
 {
 	iowrite32(clr, &hw->mmio_vaddr[DB_OUT]);
Signature · 1 line
2.27.0