]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: cleanup ath12k_mac_mlo_ready()
authorEthan Carter Edwards <ethan@ethancedwards.com>
Tue, 11 Feb 2025 02:49:41 +0000 (21:49 -0500)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Tue, 18 Feb 2025 17:53:34 +0000 (09:53 -0800)
commitceb3b35f5ef4a0c490f54eb8b53075fd83a97d11
treef891faa5b4f8a1773c9b617a7bec192f9251c5a8
parent5edbb148bc57295a6abbb31b832878c0725ed10a
wifi: ath12k: cleanup ath12k_mac_mlo_ready()

There is a possibility for an uninitialized *ret* variable to be
returned in some code paths.

This explicitly returns 0 without an error. Also removes goto that
returned *ret* and simply returns in place.

Closes: https://scan5.scan.coverity.com/#/project-view/63541/10063?selectedIssue=1642337
Fixes: b716a10d99a2 ("wifi: ath12k: enable MLO setup and teardown from core")
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
Reviewed-by: Aditya Kumar Singh <aditya.kumar.singh@oss.qualcomm.com>
Link: https://patch.msgid.link/20250210-ath12k-uninit-v2-1-3596f28dd380@ethancedwards.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/core.c