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 d17c20fd74e6..4733eab34a23 100644 --- a/fs/debugfs/inode.c +++ b/fs/debugfs/inode.c | |||
@@ -495,7 +495,7 @@ void debugfs_remove(struct dentry *dentry) | |||
495 | struct dentry *parent; | 495 | struct dentry *parent; |
496 | int ret; | 496 | int ret; |
497 | 497 | ||
498 | if (!dentry) | 498 | if (IS_ERR_OR_NULL(dentry)) |
499 | return; | 499 | return; |
500 | 500 | ||
501 | parent = dentry->d_parent; | 501 | parent = dentry->d_parent; |
@@ -527,7 +527,7 @@ void debugfs_remove_recursive(struct dentry *dentry) | |||
527 | struct dentry *child; | 527 | struct dentry *child; |
528 | struct dentry *parent; | 528 | struct dentry *parent; |
529 | 529 | ||
530 | if (!dentry) | 530 | if (IS_ERR_OR_NULL(dentry)) |
531 | return; | 531 | return; |
532 | 532 | ||
533 | parent = dentry->d_parent; | 533 | parent = dentry->d_parent; |