Skip to content
Commit b148b9ab authored by Wang Zhang's avatar Wang Zhang Committed by David S. Miller
Browse files

net: ethernet: mediatek: remove return value check of `mtk_wed_hw_add_debugfs`



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.

Signed-off-by: default avatarWang Zhang <silver_code@hust.edu.cn>
Reviewed-by: default avatarDongliang Mu <dzm91@hust.edu.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e0416e7d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment