diff options
author | Misono Tomohiro <misono.tomohiro@jp.fujitsu.com> | 2018-07-25 21:22:58 -0400 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-08-06 07:13:01 -0400 |
commit | afc6961ffd96ee7e2a86e70e9691a008eadf2926 (patch) | |
tree | 49bc19240b43cb46d2829f2e3973e5c01c857ce2 | |
parent | 5b7d687ad5913a56b6a8788435d7a53990b4176d (diff) |
btrfs: backref: Use ERR_CAST to return error code
Use ERR_CAST() instead of void * to make meaning clear.
Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r-- | fs/btrfs/backref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c index 60f4afa8ecbc..ae750b1574a2 100644 --- a/fs/btrfs/backref.c +++ b/fs/btrfs/backref.c | |||
@@ -2225,7 +2225,7 @@ struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root, | |||
2225 | 2225 | ||
2226 | fspath = init_data_container(total_bytes); | 2226 | fspath = init_data_container(total_bytes); |
2227 | if (IS_ERR(fspath)) | 2227 | if (IS_ERR(fspath)) |
2228 | return (void *)fspath; | 2228 | return ERR_CAST(fspath); |
2229 | 2229 | ||
2230 | ifp = kmalloc(sizeof(*ifp), GFP_KERNEL); | 2230 | ifp = kmalloc(sizeof(*ifp), GFP_KERNEL); |
2231 | if (!ifp) { | 2231 | if (!ifp) { |