misc: hpilo: remove unused is_device_reset function
authorTom Rix <trix@redhat.com>
Sun, 19 Mar 2023 17:04:47 +0000 (13:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Mar 2023 10:19:43 +0000 (12:19 +0200)
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.

Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20230319170447.1707655-1-trix@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/hpilo.c

index 8d00df9243c438a45c726007f038284e7cc97ede..ba4b00b8bea1772c270f194ce933b4ce4d59e4d0 100644 (file)
@@ -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]);