From: Bas Peters Date: Wed, 11 Feb 2015 08:33:06 +0000 (+0100) Subject: libertas: remove unnecessary check before calling debugfs_remove X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8a1959beca2b58dc0173ef42eb60476637e86ff9;p=linux-beck.git 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: Bas Peters Signed-off-by: Kalle Valo --- diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c index cc6a0a586f0b..26cbf1dcc662 100644 --- a/drivers/net/wireless/libertas/debugfs.c +++ b/drivers/net/wireless/libertas/debugfs.c @@ -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)