projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
851639f
)
libertas: remove unnecessary check before calling debugfs_remove
author
Bas Peters
<baspeters93@gmail.com>
Wed, 11 Feb 2015 08:33:06 +0000
(09:33 +0100)
committer
Kalle Valo
<kvalo@codeaurora.org>
Fri, 27 Feb 2015 08:06:51 +0000
(10:06 +0200)
Debugfs_remove will check for error or NULL for us, so it is not
necessary to do this here.
Signed-off-by: Bas Peters <baspeters93@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/libertas/debugfs.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/wireless/libertas/debugfs.c
b/drivers/net/wireless/libertas/debugfs.c
index cc6a0a586f0b748c054c4c0e8631ea0d706501cb..26cbf1dcc6620f0502314daf8cac579794c8f6e4 100644
(file)
--- 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)