Commit 3f87c423 authored by Antonio Quartulli's avatar Antonio Quartulli
Browse files

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: default avatarAntonio Quartulli <ordex@autistici.org>
Signed-off-by: default avatarMarek Lindner <lindner_marek@yahoo.de>
parent 46d160ef
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -396,11 +396,9 @@ err:

void batadv_debugfs_destroy(void)
{
	if (batadv_debugfs) {
	debugfs_remove_recursive(batadv_debugfs);
	batadv_debugfs = NULL;
}
}

int batadv_debugfs_add_meshif(struct net_device *dev)
{