提交 3f87c423 编写于 作者: A Antonio Quartulli

batman-adv: remove useless NULL check

debugfs_remove_recursive() checks whether its argument is not null
on its own, therefore it is possible to remove the external check.
Signed-off-by: NAntonio Quartulli <ordex@autistici.org>
Signed-off-by: NMarek Lindner <lindner_marek@yahoo.de>
上级 46d160ef
......@@ -396,10 +396,8 @@ void batadv_debugfs_init(void)
void batadv_debugfs_destroy(void)
{
if (batadv_debugfs) {
debugfs_remove_recursive(batadv_debugfs);
batadv_debugfs = NULL;
}
debugfs_remove_recursive(batadv_debugfs);
batadv_debugfs = NULL;
}
int batadv_debugfs_add_meshif(struct net_device *dev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册