summaryrefslogtreecommitdiff
path: root/tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorAlexander Minchev <adminchev@proton.me>2025-11-27 07:29:37 +0000
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>2026-01-15 17:19:36 -0800
commit8fb264d1a0c5b3feae5f492ee2bc2997b71b63e3 (patch)
tree6c0be98d754d4953df0a03669d8896cb173bcaee /tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git
parent9269caf5a7ff2c0b1f37e06f10eee68d5bf1049e (diff)
wifi: ath12k: remove redundant pci_set_drvdata() call
pci_set_drvdata() is called twice in ath12k_pci_probe() with the same pointer. Remove the earlier call so drvdata is set after ath12k_base and ath12k_pci initialization is complete. Having two calls might suggest that drvdata needs to be set early for some reason, even though it is not used until after the 'ab' struct ath12k_base is fully populated. Even though exact placement is not critical, keeping a single pci_set_drvdata() at the end of the initialization makes it clearer that drvdata points to a fully initialized structure and avoids confusion for future changes. Tested on: WCN7850 hw2.0 PCI WLAN.HMT.1.1.c5-00302-QCAHMTSWPL_V1.0_V2.0_SILICONZ-1.115823.3 Reviewed-by: Baochen Qiang <baochen.qiang@oss.qualcomm.com> Signed-off-by: Alexander Minchev <adminchev@proton.me> Link: https://patch.msgid.link/20251127072839.14167-2-adminchev@proton.me Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
Diffstat (limited to 'tools/perf/lib/Documentation/tutorial/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions