ice: simplify PF nominal-state checking
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 10 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ice: simplify ice_pf_state_is_nominal()drivers/ | +1 | 4 replies | |
| 2/2 | ice: drop pf == NULL check in ice_pf_state_is_nominal()drivers/ drivers/ | +1 | 6 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Sergey Temerkhanov | Simon Horman | Aleksandr Loktionov | Alexander Nowlin |
|---|---|---|---|---|
| 1/2 | R-b | R-b | R-b | T-b |
| 2/2 | R-b | R-b | R-b | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH 0/2] ice: simplify PF nominal-state checking
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(-)
Signature · 1 line
2.53.0