projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f915f2c
)
Input: edt-ft5x06 - remove unnecessary null test
author
Fabian Frederick
<fabf@skynet.be>
Wed, 9 Jul 2014 16:45:57 +0000
(09:45 -0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Fri, 18 Jul 2014 17:53:28 +0000
(10:53 -0700)
Fix checkpatch warning:
"WARNING: debugfs_remove_recursive(NULL) is safe this check is probably not required"
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/edt-ft5x06.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/edt-ft5x06.c
b/drivers/input/touchscreen/edt-ft5x06.c
index d4f33992ad8cf4e7a8f2d20ed30b199ffba64bb3..5a6d50c004d73c9b2d6ceb2a4b573e1542b11b7f 100644
(file)
--- a/
drivers/input/touchscreen/edt-ft5x06.c
+++ b/
drivers/input/touchscreen/edt-ft5x06.c
@@
-733,8
+733,7
@@
edt_ft5x06_ts_prepare_debugfs(struct edt_ft5x06_ts_data *tsdata,
static void
edt_ft5x06_ts_teardown_debugfs(struct edt_ft5x06_ts_data *tsdata)
{
- if (tsdata->debug_dir)
- debugfs_remove_recursive(tsdata->debug_dir);
+ debugfs_remove_recursive(tsdata->debug_dir);
kfree(tsdata->raw_buffer);
}