Commit ff201945 authored by Fabian Frederick's avatar Fabian Frederick Committed by Jiri Kosina

HID: picolcd: remove unnecessary NULL test before debugfs_remove

Fix checkpatch warning:
WARNING: debugfs_remove(NULL) is safe this check is probably not required
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 0a9597b7
...@@ -883,15 +883,12 @@ void picolcd_exit_devfs(struct picolcd_data *data) ...@@ -883,15 +883,12 @@ void picolcd_exit_devfs(struct picolcd_data *data)
dent = data->debug_reset; dent = data->debug_reset;
data->debug_reset = NULL; data->debug_reset = NULL;
if (dent)
debugfs_remove(dent); debugfs_remove(dent);
dent = data->debug_eeprom; dent = data->debug_eeprom;
data->debug_eeprom = NULL; data->debug_eeprom = NULL;
if (dent)
debugfs_remove(dent); debugfs_remove(dent);
dent = data->debug_flash; dent = data->debug_flash;
data->debug_flash = NULL; data->debug_flash = NULL;
if (dent)
debugfs_remove(dent); debugfs_remove(dent);
mutex_destroy(&data->mutex_flash); mutex_destroy(&data->mutex_flash);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment