aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorJakob Koschel <[email protected]>2022-04-29 14:38:03 -0700
committerakpm <[email protected]>2022-04-29 14:38:03 -0700
commitf8323a0cb9a66d8d8747c463211392a2cfc4c1dc (patch)
treefeadc2a20f840c64b028b4dadc0c2ba449115660 /scripts/bpf_doc.py
parent16b0b7adabfb5564a77fa35917afe08decd55b29 (diff)
rapidio: remove unnecessary use of list iterator
req->map is set in the valid case and always equals 'map' if the break was hit. It therefore is unnecessary to use the list iterator variable and the use of 'map' can be replaced with req->map. This is done in preparation to limit the scope of a list iterator to the list traversal loop [1]. Link: https://lore.kernel.org/all/[email protected]/ Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Jakob Koschel <[email protected]> Reviewed-by: John Hubbard <[email protected]> Cc: Matt Porter <[email protected]> Cc: Alexandre Bounine <[email protected]> Cc: Kees Cook <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: "Brian Johannesmeyer" <[email protected]> Cc: Cristiano Giuffrida <[email protected]> Cc: "Bos, H.J." <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions