diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2016-01-29 08:36:35 -0500 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-18 05:46:03 -0500 |
commit | 5598e9005a4076d6700bbd89d0cdbe5b2922a846 (patch) | |
tree | f0d5eb3931d5c990d23dabc39458248cbda6fbe2 /fs/btrfs/disk-io.c | |
parent | 89771cc98c5a4e8666e479dde171ffb52c6fa774 (diff) |
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/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 4545e2e2ad45..19f8e5bd7dfb 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -110,8 +110,7 @@ int __init btrfs_end_io_wq_init(void) | |||
110 | 110 | ||
111 | void btrfs_end_io_wq_exit(void) | 111 | void btrfs_end_io_wq_exit(void) |
112 | { | 112 | { |
113 | if (btrfs_end_io_wq_cache) | 113 | kmem_cache_destroy(btrfs_end_io_wq_cache); |
114 | kmem_cache_destroy(btrfs_end_io_wq_cache); | ||
115 | } | 114 | } |
116 | 115 | ||
117 | /* | 116 | /* |