mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-07 22:42:04 +00:00
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: Fabian Frederick <fabf@skynet.be> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
parent
0a9597b70c
commit
ff2019456d
@ -883,16 +883,13 @@ void picolcd_exit_devfs(struct picolcd_data *data)
|
||||
|
||||
dent = data->debug_reset;
|
||||
data->debug_reset = NULL;
|
||||
if (dent)
|
||||
debugfs_remove(dent);
|
||||
debugfs_remove(dent);
|
||||
dent = data->debug_eeprom;
|
||||
data->debug_eeprom = NULL;
|
||||
if (dent)
|
||||
debugfs_remove(dent);
|
||||
debugfs_remove(dent);
|
||||
dent = data->debug_flash;
|
||||
data->debug_flash = NULL;
|
||||
if (dent)
|
||||
debugfs_remove(dent);
|
||||
debugfs_remove(dent);
|
||||
mutex_destroy(&data->mutex_flash);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user