Skip to content
Snippets Groups Projects
Commit 042cc4c7 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman Committed by Dmitry Torokhov
Browse files

Input: edt-ft5x06 - no need to check return value of debugfs_create functions


When calling debugfs functions, there is no need to ever check the
return value.  The function can work or not, but the code logic should
never do something different based on this.

Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 656d29ce
No related branches found
No related tags found
No related merge requests found
...@@ -764,8 +764,6 @@ edt_ft5x06_ts_prepare_debugfs(struct edt_ft5x06_ts_data *tsdata, ...@@ -764,8 +764,6 @@ edt_ft5x06_ts_prepare_debugfs(struct edt_ft5x06_ts_data *tsdata,
const char *debugfs_name) const char *debugfs_name)
{ {
tsdata->debug_dir = debugfs_create_dir(debugfs_name, NULL); tsdata->debug_dir = debugfs_create_dir(debugfs_name, NULL);
if (!tsdata->debug_dir)
return;
debugfs_create_u16("num_x", S_IRUSR, tsdata->debug_dir, &tsdata->num_x); debugfs_create_u16("num_x", S_IRUSR, tsdata->debug_dir, &tsdata->num_x);
debugfs_create_u16("num_y", S_IRUSR, tsdata->debug_dir, &tsdata->num_y); debugfs_create_u16("num_y", S_IRUSR, tsdata->debug_dir, &tsdata->num_y);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment