Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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.

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>

authored by

Tom Rix and committed by
Greg Kroah-Hartman
52a7a5e9 1fb1ea0d

-6
-6
drivers/misc/hpilo.c
··· 392 392 return db_out & (1 << DB_RESET); 393 393 } 394 394 395 - static inline int is_device_reset(struct ilo_hwinfo *hw) 396 - { 397 - /* check for global reset condition */ 398 - return is_db_reset(get_device_outbound(hw)); 399 - } 400 - 401 395 static inline void clear_pending_db(struct ilo_hwinfo *hw, int clr) 402 396 { 403 397 iowrite32(clr, &hw->mmio_vaddr[DB_OUT]);