btrfs: backref.c: Use ERR_CAST() to return error code
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 btrfs: backref.c: Use ERR_CAST() to return error code
Use ERR_CAST() instead of void * to make meaning clear.
Signed-off-by Misono Tomohiro <[email protected]>
--- fs/btrfs/backref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/btrfs/backref.c +1 -1
@@ -2231,7 +2231,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) {
Signature · 1 line
2.14.4
Quoted 3 lines · Misono Tomohiro
Use
ERR_CAST()instead of void * to make meaning clear.Signed-off-by Misono Tomohiro <[email protected]>
Reviewed-by Nikolay Borisov <[email protected]>
Quoted 18 lines
--- fs/btrfs/backref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/btrfs/backref.c +1
-1@@ -2231,7 +2231,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) {
Quoted 3 lines · Misono Tomohiro
Use
ERR_CAST()instead of void * to make meaning clear.Signed-off-by Misono Tomohiro <[email protected]>
Added to misc-next, thanks.