diff options
author | Misono Tomohiro <misono.tomohiro@jp.fujitsu.com> | 2018-07-26 10:22:58 +0900 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-08-06 13:13:01 +0200 |
commit | afc6961ffd96ee7e2a86e70e9691a008eadf2926 (patch) | |
tree | 49bc19240b43cb46d2829f2e3973e5c01c857ce2 /fs/btrfs | |
parent | 5b7d687ad5913a56b6a8788435d7a53990b4176d (diff) | |
download | linux-afc6961ffd96ee7e2a86e70e9691a008eadf2926.tar.bz2 |
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>
Diffstat (limited to 'fs/btrfs')
-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, fspath = init_data_container(total_bytes); if (IS_ERR(fspath)) - return (void *)fspath; + return ERR_CAST(fspath); ifp = kmalloc(sizeof(*ifp), GFP_KERNEL); if (!ifp) { |