|
@@ -498,7 +498,7 @@ void debugfs_remove(struct dentry *dentry)
|
|
struct dentry *parent;
|
|
struct dentry *parent;
|
|
int ret;
|
|
int ret;
|
|
|
|
|
|
- if (!dentry)
|
|
|
|
|
|
+ if (IS_ERR_OR_NULL(dentry))
|
|
return;
|
|
return;
|
|
|
|
|
|
parent = dentry->d_parent;
|
|
parent = dentry->d_parent;
|
|
@@ -530,7 +530,7 @@ void debugfs_remove_recursive(struct dentry *dentry)
|
|
struct dentry *child;
|
|
struct dentry *child;
|
|
struct dentry *parent;
|
|
struct dentry *parent;
|
|
|
|
|
|
- if (!dentry)
|
|
|
|
|
|
+ if (IS_ERR_OR_NULL(dentry))
|
|
return;
|
|
return;
|
|
|
|
|
|
parent = dentry->d_parent;
|
|
parent = dentry->d_parent;
|