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

patchwork-bot+netdevbpf at kernel.org patchwork-bot+netdevbpf at kernel.org
Sun Apr 23 05:50:17 PDT 2023


Hello:

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

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





More information about the Linux-mediatek mailing list