Repository : ssh://git@open-mesh.org/batman-adv
On branch : master
commit 25d7e064bc219596bfe3c4d07248fd0417af3071 Author: Antonio Quartulli ordex@autistici.org Date: Thu Nov 29 01:03:31 2012 +0100
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: Antonio Quartulli ordex@autistici.org Signed-off-by: Marek Lindner lindner_marek@yahoo.de
25d7e064bc219596bfe3c4d07248fd0417af3071 debugfs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/debugfs.c b/debugfs.c index 0049837..5136d32 100644 --- a/debugfs.c +++ b/debugfs.c @@ -396,10 +396,8 @@ err:
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)