From: Antonio Quartulli Date: Thu, 29 Nov 2012 00:03:31 +0000 (+0100) Subject: batman-adv: remove useless NULL check X-Git-Tag: v3.9-rc1~139^2~391^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3f87c4239fa1df61beffbee2ca00e8ffbe31a5e3;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Marek Lindner --- diff --git a/net/batman-adv/debugfs.c b/net/batman-adv/debugfs.c index 0049837e1f2a0..5136d32bc9b95 100644 --- a/net/batman-adv/debugfs.c +++ b/net/batman-adv/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)