diff options
Diffstat (limited to 'fs/debugfs/inode.c')
-rw-r--r-- | fs/debugfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c index b80bc846a15a..0de5e26870c3 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c | |||
@@ -498,7 +498,7 @@ void debugfs_remove(struct dentry *dentry) | |||
498 | struct dentry *parent; | 498 | struct dentry *parent; |
499 | int ret; | 499 | int ret; |
500 | 500 | ||
501 | if (!dentry) | 501 | if (IS_ERR_OR_NULL(dentry)) |
502 | return; | 502 | return; |
503 | 503 | ||
504 | parent = dentry->d_parent; | 504 | parent = dentry->d_parent; |
@@ -530,7 +530,7 @@ void debugfs_remove_recursive(struct dentry *dentry) | |||
530 | struct dentry *child; | 530 | struct dentry *child; |
531 | struct dentry *parent; | 531 | struct dentry *parent; |
532 | 532 | ||
533 | if (!dentry) | 533 | if (IS_ERR_OR_NULL(dentry)) |
534 | return; | 534 | return; |
535 | 535 | ||
536 | parent = dentry->d_parent; | 536 | parent = dentry->d_parent; |