提交 8a1959be 编写于 作者: B Bas Peters 提交者: Kalle Valo

libertas: remove unnecessary check before calling debugfs_remove

Debugfs_remove will check for error or NULL for us, so it is not
necessary to do this here.
Signed-off-by: NBas Peters <baspeters93@gmail.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 851639fd
......@@ -742,8 +742,7 @@ void lbs_debugfs_init(void)
void lbs_debugfs_remove(void)
{
if (lbs_dir)
debugfs_remove(lbs_dir);
debugfs_remove(lbs_dir);
}
void lbs_debugfs_init_one(struct lbs_private *priv, struct net_device *dev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册