wifi: iwlwifi: tests: simplify devinfo_no_trans_cfg_dups()
authorJohannes Berg <johannes.berg@intel.com>
Sun, 4 May 2025 10:26:29 +0000 (13:26 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 7 May 2025 03:08:01 +0000 (06:08 +0300)
commitd6bf0778f7e16148d90397f1b21389a47656d4d4
tree9df16d561d6cbd6272556bab4d201855431fdb05
parent5f585528ff6a29cc98225acfe2cd58107ddcff48
wifi: iwlwifi: tests: simplify devinfo_no_trans_cfg_dups()

There's no need to build a list of individual configs
first and then compare them, we can just go through all
of them and compare if the pointers aren't the same.
The complexity (in terms of number of comparisons) is a
bit higher that way, but it's just a test and the code
complexity is much lower without that.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250504132447.85911c59d96a.I540f464229da3566d1726dfb61b46002fbb73bde@changeid
drivers/net/wireless/intel/iwlwifi/tests/devinfo.c