Jinjie Ruan <ruanjinjie@xxxxxxxxxx> wrote: > Since debugfs_create_file() return ERR_PTR and never return NULL, so use > IS_ERR() to check it instead of checking NULL. > > Fixes: e3037485c68e ("rtw88: new Realtek 802.11ac driver") > Signed-off-by: Jinjie Ruan <ruanjinjie@xxxxxxxxxx> > Acked-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx> Patch applied to wireless-next.git, thanks. 74f7957c9b1b wifi: rtw88: debug: Fix the NULL vs IS_ERR() bug for debugfs_create_file() -- https://patchwork.kernel.org/project/linux-wireless/patch/20230919050651.962694-1-ruanjinjie@xxxxxxxxxx/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches