Skip to content

Commit

Permalink
drgn.helpers.linux.nodemask: get rid of pointless variable
Browse files Browse the repository at this point in the history
Signed-off-by: Omar Sandoval <[email protected]>
  • Loading branch information
osandov committed Nov 30, 2023
1 parent 5499a82 commit 29ad057
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drgn/helpers/linux/nodemask.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def for_each_node_state(prog: Program, state: IntegerLike) -> Iterator[int]:
:param state: ``enum node_states`` (e.g., ``N_NORMAL_MEMORY``)
"""
mask = prog["node_states"][state]
return for_each_node_mask(mask)
return for_each_node_mask(prog["node_states"][state])


def for_each_node(prog: Program) -> Iterator[int]:
Expand Down

0 comments on commit 29ad057

Please sign in to comment.