Skip to content
Commit 1f39e1d9 authored by Jinjie Ruan's avatar Jinjie Ruan Committed by Felix Fietkau
Browse files

wifi: mt76: Drop unnecessary error check for debugfs_create_dir()



debugfs_create_dir() returns ERR_PTR and never return NULL.

As Russell suggested, this patch removes the error checking for
debugfs_create_dir(). This is because the DebugFS kernel API is developed
in a way that the caller can safely ignore the errors that occur during
the creation of DebugFS nodes. The debugfs APIs have a IS_ERR() judge in
start_creating() which can handle it gracefully. So these checks are
unnecessary.

Fixes: 17f1de56 ("mt76: add common code shared between multiple chipsets")
Signed-off-by: default avatarJinjie Ruan <ruanjinjie@huawei.com>
Suggested-by: default avatarRussell King (Oracle) <linux@armlinux.org.uk>
Signed-off-by: default avatarFelix Fietkau <nbd@nbd.name>
parent ced1a0b8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment