diff options
| author | Sevinj Aghayeva <[email protected]> | 2022-04-03 12:42:50 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-04-05 16:03:00 +0200 |
| commit | 8a4b1870f8b2e5908536ffad4cea2ae943b9106c (patch) | |
| tree | d0c982e08d76ddf3bda1d25ae78501bace6a46a8 /tools/perf/scripts/python | |
| parent | c1b068defdd91eabf59f11bd364f37c926d65460 (diff) | |
staging: r8188eu: 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
Signed-off-by: Sevinj Aghayeva <[email protected]>
Link: https://lore.kernel.org/r/20220403164250.GA371601@euclid
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions