Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f306bbdc authored by Wang Ming's avatar Wang Ming Committed by Greg Kroah-Hartman
Browse files

wifi: ath9k: use IS_ERR() with debugfs_create_dir()



[ Upstream commit 1e4134610d93271535ecf900a676e1f094e9944c ]

The debugfs_create_dir() function returns error pointers,
it never returns NULL. Most incorrect error checks were fixed,
but the one in ath9k_htc_init_debug() was forgotten.

Fix the remaining error check.

Fixes: e5facc75 ("ath9k_htc: Cleanup HTC debugfs")
Signed-off-by: default avatarWang Ming <machel@vivo.com>
Acked-by: default avatarToke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: default avatarKalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230713030358.12379-1-machel@vivo.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 231086e6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment