Re: [PATCH] net: ethernet: mediatek: remove return value check of `mtk_wed_hw_add_debugfs`

From: patchwork-bot+netdevbpf
Date: Sun Apr 23 2023 - 08:50:29 EST


Hello:

This patch was applied to netdev/net.git (main)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Fri, 21 Apr 2023 23:10:09 +0800 you wrote:
> Smatch complains that:
> mtk_wed_hw_add_debugfs() warn: 'dir' is an error pointer or valid
>
> Debugfs checks are generally not supposed to be checked
> for errors and it is not necessary here.
>
> fix it by just deleting the dead code.
>
> [...]

Here is the summary with links:
- net: ethernet: mediatek: remove return value check of `mtk_wed_hw_add_debugfs`
https://git.kernel.org/netdev/net/c/b148b9abc844

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html