[PATCH v2] wifi: mt7601u: delete dead code checking debugfs returns

Jakub Kicinski kuba at kernel.org
Fri Apr 21 07:28:54 PDT 2023


On Fri, 21 Apr 2023 09:22:00 +0000 Wang Jikai wrote:
> Smatch reports that:
> drivers/net/wireless/mediatek/mt7601u/debugfs.c:130
> mt7601u_init_debugfs() warn: 'dir' is an error pointer or valid".
> 
> Debugfs code is not supposed to need error checking so instead of
> changing this to if (IS_ERR()) the correct thing is to just delete
> the dead code.
> 
> Signed-off-by: Wang Jikai <wangjikai at hust.edu.cn>

Acked-by: Jakub Kicinski <kuba at kernel.org>



More information about the linux-arm-kernel mailing list