diff options
| author | Sevinj Aghayeva <[email protected]> | 2022-04-01 07:46:35 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-04-04 07:33:49 +0200 |
| commit | 875e957087b5f8624a1fbfe9d9b9647ec7912bd4 (patch) | |
| tree | b18c638a692706797d55412783eaf5b614b62dbf /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 47f46a873d9bd29f1d663517eff4a4ad7c1654b9 (diff) | |
staging: rtl8723bs: simplify control flow
The function iterates an index from 0 to NUM_PMKID_CACHE and returns
the first index for which the condition is true. If no such index is
found, the function returns -1. Current code has a complex control
flow that obfuscates this simple task. Replace it with a loop.
Also, given the shortened function body, replace the long variable
name psecuritypriv with a short variable name p.
Reported by checkpatch:
WARNING: else is not generally useful after a break or return
Reviewed-by: Ira Weiny <[email protected]>
Signed-off-by: Sevinj Aghayeva <[email protected]>
Link: https://lore.kernel.org/r/20220401114635.GA567659@euclid
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions