> -----Original Message----- > From: Yury Norov <[email protected]> > Sent: Thursday, September 3, 2026 6:21 AM > To: Nguyen, Anthony L <[email protected]>; Kitszel, Przemyslaw > <[email protected]>; Andrew Lunn <[email protected]>; David S. > Miller <[email protected]>; Eric Dumazet <[email protected]>; Jakub > Kicinski <[email protected]>; Paolo Abeni <[email protected]>; > [email protected]; [email protected]; open list > <[email protected]> > Cc: Yury Norov <[email protected]> > Subject: [PATCH 2/2] ice: drop pf == NULL check in ice_pf_state_is_nominal() > > The function has 3 callers, all except one explicitly require pf != NULL. Add > the corresponding check to the remaining caller, and remove it from the > ice_pf_state_is_nominal(). It makse the fun function a one-liner. > > Signed-off-by: Yury Norov <[email protected]> > --- > drivers/net/ethernet/intel/ice/ice_lib.c | 3 --- > drivers/net/ethernet/intel/ice/ice_main.c | 2 +- > 2 files changed, 1 insertion(+), 4 deletions(-)
Tested-by: Alexander Nowlin <[email protected]>
