summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mediatek/mt76/mt7921
diff options
context:
space:
mode:
authorJinjie Ruan <ruanjinjie@huawei.com>2023-09-03 11:02:16 +0800
committerFelix Fietkau <nbd@nbd.name>2023-09-30 20:03:05 +0200
commit1f39e1d95a210ac98422b5111962f9bb9f2428a4 (patch)
tree77b184fad484534c41bbb79ee30d0942e9852cbb /drivers/net/wireless/mediatek/mt76/mt7921
parentced1a0b8f3944e44e7f4eb3772dea1bada25d38a (diff)
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: 17f1de56df05 ("mt76: add common code shared between multiple chipsets") Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> Suggested-by: Russell King (Oracle) <linux@armlinux.org.uk> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7921')
0 files changed, 0 insertions, 0 deletions