diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-03-20 17:13:42 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2023-03-31 17:45:50 +0300 |
commit | 8de7838acfa3309fcc4c6160cb230ee79f582b18 (patch) | |
tree | f853c9a0c34c394ab4bcb6bc091c3fbf8a316d16 /tools/perf/scripts/python | |
parent | c7e39d70613c113b5ac667beeb3cacb242c6a4cb (diff) |
wifi: rsi: Slightly simplify rsi_set_channel()
There is no point in allocating 'skb' and then freeing it if !channel.
Make the sanity check first to slightly simplify the code.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/29bf0296bd939e3f6952272bfdcc73b22edbc374.1679328588.git.christophe.jaillet@wanadoo.fr
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions