We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d03ae47 commit 352bce2Copy full SHA for 352bce2
lib/842/842_debugfs.h
@@ -22,8 +22,6 @@ static int __init sw842_debugfs_create(void)
22
return -ENODEV;
23
24
sw842_debugfs_root = debugfs_create_dir(MODULE_NAME, NULL);
25
- if (IS_ERR(sw842_debugfs_root))
26
- return PTR_ERR(sw842_debugfs_root);
27
28
for (i = 0; i < ARRAY_SIZE(template_count); i++) {
29
char name[32];
@@ -46,8 +44,7 @@ static int __init sw842_debugfs_create(void)
46
44
47
45
static void __exit sw842_debugfs_remove(void)
48
{
49
- if (sw842_debugfs_root && !IS_ERR(sw842_debugfs_root))
50
- debugfs_remove_recursive(sw842_debugfs_root);
+ debugfs_remove_recursive(sw842_debugfs_root);
51
}
52
53
#endif
0 commit comments