diff options
author | Johannes Berg <[email protected]> | 2023-05-14 12:15:45 +0300 |
---|---|---|
committer | Johannes Berg <[email protected]> | 2023-05-16 10:27:04 -0700 |
commit | 9e949dfdc5d1697ccbcc19c06f5133e1833d8eea (patch) | |
tree | d51f5ecc548268463b2cadd18a89eb1d987e900d /lib/mpi/mpiutil.c | |
parent | 783336b05f06821c9af3b057ecd5a7aa082ed973 (diff) |
wifi: iwlwifi: mvm: don't double-init spinlock
We don't need to (and shouldn't) initialize the spinlock
during HW restart that was already initialized, so move
that into the correct if block. Since then we have two
consecutive if statements with the same (though inverted)
condition, unify those as well.
Signed-off-by: Johannes Berg <[email protected]>
Signed-off-by: Gregory Greenman <[email protected]>
Link: https://lore.kernel.org/r/20230514120631.221c22cfdf4e.I2e30113ef4bd8cb5bd9e1a69e52a95671914961c@changeid
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions