summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-picolcd_debugfs.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-28 15:35:03 +0200
committerJiri Kosina <jkosina@suse.cz>2014-06-30 09:54:22 +0200
commitff2019456d745d4ebc1307eba128393a39790217 (patch)
tree4343761e351f02a17e154666867ff75327af8850 /drivers/hid/hid-picolcd_debugfs.c
parentHID: roccat: Drop cast (diff)
downloadlinux-ff2019456d745d4ebc1307eba128393a39790217.tar.xz
linux-ff2019456d745d4ebc1307eba128393a39790217.zip
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>
Diffstat (limited to 'drivers/hid/hid-picolcd_debugfs.c')
-rw-r--r--drivers/hid/hid-picolcd_debugfs.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/hid/hid-picolcd_debugfs.c b/drivers/hid/hid-picolcd_debugfs.c
index 024cdf3c2297..3c13af684410 100644
--- a/drivers/hid/hid-picolcd_debugfs.c
+++ b/drivers/hid/hid-picolcd_debugfs.c
@@ -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);
}