wifi: ath9k: use IS_ERR() with debugfs_create_dir()
authorWang Ming <machel@vivo.com>
Thu, 13 Jul 2023 03:03:44 +0000 (11:03 +0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Fri, 25 Aug 2023 07:35:21 +0000 (10:35 +0300)
commit1e4134610d93271535ecf900a676e1f094e9944c
tree3ea25556c97d3c191290b0161dcecde696a4c7b8
parentafb522b36e76acaa9f8fc06d0a9742d841c47c16
wifi: ath9k: use IS_ERR() with debugfs_create_dir()

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: e5facc75fa91 ("ath9k_htc: Cleanup HTC debugfs")
Signed-off-by: Wang Ming <machel@vivo.com>
Acked-by: Toke Høiland-Jørgensen <toke@toke.dk>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230713030358.12379-1-machel@vivo.com
drivers/net/wireless/ath/ath9k/htc_drv_debug.c