[PATCH 0/2] ice: simplify PF nominal-state checking

From: Yury Norov

Date: Thu Sep 03 2026 - 10:00:53 EST


Simplify ice_pf_state_is_nominal() by checking the relevant state bits
directly with bitmap_empty(), instead of constructing a temporary bitmap
on the stack.

Two of the three callers dereference the PF before calling the helper.
Move the NULL check to the remaining caller so that
ice_pf_state_is_nominal() becomes a one-liner.

Yury Norov (2):
ice: simplify ice_pf_state_is_nominal()
ice: drop pf == NULL check in ice_pf_state_is_nominal()

drivers/net/ethernet/intel/ice/ice_lib.c | 11 +----------
drivers/net/ethernet/intel/ice/ice_main.c | 2 +-
2 files changed, 2 insertions(+), 11 deletions(-)

--
2.53.0