Intel-Wired-Lan Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] ice: simplify PF nominal-state checking
@ 2026-09-03 13:20 Yury Norov
  2026-09-03 13:20 ` [PATCH 1/2] ice: simplify ice_pf_state_is_nominal() Yury Norov
  2026-09-03 13:20 ` [PATCH 2/2] ice: drop pf == NULL check in ice_pf_state_is_nominal() Yury Norov
  0 siblings, 2 replies; 5+ messages in thread
From: Yury Norov @ 2026-09-03 13:20 UTC (permalink / raw)
  To: Tony Nguyen, Przemek Kitszel, Andrew Lunn, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, intel-wired-lan,
	netdev, open list
  Cc: Yury Norov

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-09-03 15:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-03 13:20 [PATCH 0/2] ice: simplify PF nominal-state checking Yury Norov
2026-09-03 13:20 ` [PATCH 1/2] ice: simplify ice_pf_state_is_nominal() Yury Norov
2026-09-03 15:28   ` Temerkhanov, Sergey
2026-09-03 13:20 ` [PATCH 2/2] ice: drop pf == NULL check in ice_pf_state_is_nominal() Yury Norov
2026-09-03 15:29   ` Temerkhanov, Sergey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox