diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2016-01-29 21:36:35 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-18 11:46:03 +0100 |
commit | 5598e9005a4076d6700bbd89d0cdbe5b2922a846 (patch) | |
tree | f0d5eb3931d5c990d23dabc39458248cbda6fbe2 /fs/btrfs/delayed-inode.c | |
parent | 89771cc98c5a4e8666e479dde171ffb52c6fa774 (diff) | |
download | linux-5598e9005a4076d6700bbd89d0cdbe5b2922a846.tar.bz2 |
btrfs: drop null testing before destroy functions
Cleanup.
kmem_cache_destroy has support NULL argument checking,
so drop the double null testing before calling it.
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/delayed-inode.c')
-rw-r--r-- | fs/btrfs/delayed-inode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-inode.c index 0be47e4b8136..716a4ec77332 100644 --- a/fs/btrfs/delayed-inode.c +++ b/fs/btrfs/delayed-inode.c @@ -43,8 +43,7 @@ int __init btrfs_delayed_inode_init(void) void btrfs_delayed_inode_exit(void) { - if (delayed_node_cache) - kmem_cache_destroy(delayed_node_cache); + kmem_cache_destroy(delayed_node_cache); } static inline void btrfs_init_delayed_node( |